get x axis units on zoom in


Author
Message
Manal Goyal
Manal Goyal
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search