private void CreateSingleSeries(int rowStartIndex,int rowEndINdex,int colStartIndex,int colEndIndex)
{
for(int i=rowStartIndex; i<= rowEndINdex; i++)
{
string styleRowname= "ch1"+i.ToString ();
ChartSeries series = new ChartSeries (this,styleRowname);
if (this.ChartType =="Circle")
{
for(int j=colStartIndex; j<=colEndIndex; j++)
{
string styleColname = "ch2"+j.ToString ();
ChartDataPoint dataPoint = new ChartDataPoint (this,styleColname);
series.DataPointCollection .Add (dataPoint);
}
}
else
{
string pointStylename = "ch3"+i.ToString ();
ChartDataPoint dataPoint= new ChartDataPoint (this,pointStylename);
int Repeated = colEndIndex-colStartIndex+1;
dataPoint.Repeated =Repeated.ToString ();
series.DataPointCollection .Add (dataPoint);
}
this.ChartPlotArea .SeriesCollection .Add (series);
}
}