int numberOfCharts = 10;
Chart [] charts = new Chart[numberOfCharts];
// you need to populate them
for (int index = 0; index < numberOfCharts; ++index)
{
charts[index] = GetChart(index);
}
while (thisReader.Read())
{
chart[i] .Series.Add(thisReader.GetValue(0).ToString());
i++;
}
If you already have chart1, chart2 etc defined (e.g. in a UI) then you can set the items of the chart array manually e.g.
int numberOfCharts = 10;
Chart [] charts = new Chart[numberOfCharts];
// you need to populate them
for (int index = 0; index < numberOfCharts; ++index)
{
charts[index] = GetChart(index);
}
while (thisReader.Read())
{
chart[i] .Series.Add(thisReader.GetValue(0).ToString());
i++;
}
If you already have chart1, chart2 etc defined (e.g. in a UI) then you can set the items of the chart array manually e.g.
Bookmarks