I have some sales data in mysql and after some query the result would be something like this:
year |sales |
2008 |100000 |
2009 |120040 |
2010 |239000 |
2011 |300900 |
2012 |200900 |
and this data will be shown on chart, now I want to add one value from some data forecasting for next year, and display it on chart
I’ve tried this code:
myChart.Series[0].Points[0].XValue = (year + 1);
myChart.Series[0].Points[0].YValues = dataForecasting;
but nothing happen, how can I add one value on chart? I want a continuous line graph, so from 2008 until 2013 there was only one series
1 Answer