Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSChart X-axis is starting from -1 instead of 0

I posted this earlier but have just registered on the site today,

I tried using the

  YourChartArea.AxisX.IsStartedFromZero = true;

but its still starting at -1 :(

I even tried incremented my Xaxis value (value +1), the data is plotted at point 2 on the X-axis, yet the X-axis is still starting from -1.

Any other suggestions please

Thanks in advance

like image 667
3.1 FTW Avatar asked Feb 25 '11 21:02

3.1 FTW


1 Answers

I think this may help:

Chart1.ChartAreas[0].AxisX.Minimum = 0;

like image 143
nycdan Avatar answered Nov 20 '22 03:11

nycdan