get x axis units on zoom in


https://www.nevron.com/Forum/Topic12882.aspx
Print Topic | Close Window

By Manal Goyal - 5 Years Ago
Hi,
I have a normal 2D chart and when I zoom into that chart I get Y axis tick values updated to show smaller intervals, however x axis tics keeps showing the same interval and after a lot of zooming in x axis stops showing the ticks at all. How can I get the smaller interval ticks on x axis.
By Nevron Support - 5 Years Ago
Hi Manal,
Most likely the problem is related to the scale you're using on the X axis. By default the chart is configured to use an ordinal (categorical) scale which supports integer (exact numbers) ticks only. This is by design. You can switch to a linear numeric step if you want to enable smaller steps:

   NLinearScaleConfigurator scaleX = new NLinearScaleConfigurator();
    chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = scaleX;
Let us know if you meet any problems or have any questions.