
{
rand = new Random();
ChartArea ca = new ChartArea();
DataTable ds = new DataTable();
ds = GameLib.Reports.GetReportList();
for (int i = 0; i < 4; i++)
{
Chart2.Series.Add("Series" + i.ToString());
Chart2.ChartAreas.Add("ChartArea" + i.ToString());
Chart2.Series[i].ChartArea = "ChartArea" + i.ToString();
Chart2.Series[i].ChartType = SeriesChartType.Bar;
}
for (int k = 0; k < 4; k++)
{
Chart2.Series[("Series" + k).ToString()].Points.DataBindXY(ds.DefaultView, "ReportID", ds.DefaultView, "ReportName");
}
}
This is code to create multiple charts.
Can anybody help me to create multiple chart headers?
i.e i have attached output image,actually each chart has a title,so i want to display the title of each chart.