C# plotting chart- How to show maximum scale when set fixed interval at same time -


i trying plot mschart setting x axis both maximum property , fixed interval. chart plotted not showing maximum scale(tickmark). unless use auto interval instead of fixed interval.


if set x axis maximum value , auto interval, max scale showing.(but interval not want)

chart1.chartareas[0].axisx.maximum = dt.rows[lastpointindex].field<double>("x"); chart1.chartareas[0].axisx.minimum = 0; 

enter image description here

if add this, maximum scale not showing.

chart1.chartareas[0].axisx.interval = 0.15; 

enter image description here

btw, add points in way:

for (int j = 0; j <= index; j++) { double x = dt.rows[j].field<double>("x"); double y = dt.rows[j].field<double>("y"); colomun1.points.addxy(x, y); } 


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -