Profile Picture

get x axis units on zoom in

Posted By Manal Goyal 5 Years Ago
Author
Message
Manal Goyal
Posted 5 Years Ago
View Quick Profile
Forum Member

Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 29, Visits: 405
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.


Nevron Support
Posted 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
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.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic