Ejemplo n.º 1
0
 public void add(Series series)
 {
     m_seriesCollection.Add(series);
 }
Ejemplo n.º 2
0
        private DefaultDataSource fillDataSource()
        {
            DefaultDataSource source = new DefaultDataSource();
            Series series = new Series();
            source.add(series);
            updateCumulativeData();
            if(m_hashTable.Count>26)
            {
                psLegendPanel.PanelState =PSUI.PSPanelState.Expanded ;
                double sizeMark=m_hashTable.Count/26.000  ;
                psLegendPanel.Height=Convert.ToInt32(System.Math.Ceiling(sizeMark)*550);
                psLegendPanel.Refresh();
            }

            foreach(object key in m_hashTable.Keys)
            {
                series.add(new DataPoint(Convert.ToString(key),(float)Convert.ToDouble(m_hashTable[key]),Color.FromArgb(randomizer.Next(255),randomizer.Next(255),randomizer.Next(255))));
            }
            return source;
        }