I'm currently using MS Chart Control. And in this object i have 2 series: Balance and Volume. Data to
foreach (double balance in grStats.getChangedBalance())
{
chartBalanceAndVolume.Series["Balance"].Points.Add(new DataPoint(0, balance));
}
added succesfully. But if i write as
int index = 1;
foreach (double volume in grStats.getVolumes())
{
chartBalanceAndVolume.Series["Volume"].Points.Add(new DataPoint(index, volume));
index++;
}
this leads to the addition of the values in the chart "Balance". Why is that?