コード例 #1
0
 /// <summary>
 /// Method to call before saving a PieGraph
 /// </summary>
 public void copySeriesChartTolSeries()
 {
     foreach (Series serie in listSeries)
     {
         GraphSaves gr = new GraphSaves();
         gr.Series.AddRange((ChartValues <double>)serie.Values);
         if (serie.GetType() == typeof(PieSeries))
         {
             gr.seriesType = "Pie";
         }
         gr.seriesTitle = serie.Title;
         lseries.Add(gr);
     }
 }
コード例 #2
0
 /// <summary>
 /// Method to call before saving a CartesianGraph
 /// </summary>
 public void copySeriesChartTolSeries()
 {
     lseries.Clear();
     foreach (Series serie in listSeries)
     {
         GraphSaves gr = new GraphSaves();
         gr.Series.AddRange((ChartValues <double>)serie.Values);
         if (serie.GetType() == typeof(ColumnSeries))
         {
             gr.seriesType = "Column";
         }
         else if (serie.GetType() == typeof(LineSeries))
         {
             gr.seriesType = "Line";
         }
         else if (serie.GetType() == typeof(RowSeries))
         {
             gr.seriesType = "Row";
         }
         gr.seriesTitle = serie.Title;
         lseries.Add(gr);
     }
 }