Hello,
I am trying to make a non-linear numeric axis. Could you please help with an example?
I was reading this documentation and was playing around with the CustomTickProvider class, however I cannot achieve desired result.
https://www.scichart.com/documentation/js/current/webframe.html#AxisTicks-GridLineAndLabelSpacingProgrammatically.html
If we take a look at the example 2, we can see that it is possible to make unequally spaced grid lines but it seems that the spacing is still linear. As in example provided by you, would it be possible to place, let’s say number 2.0 in a place of 4.0, or 8.0?
Kind regards
- Zino As asked 1 month ago
- You must login to post comments
Hi,
Can you give a bit more detail of how exactly you need the axis to behave? The TickProvider just sets the positions of labels and gridlines, but if you actually want the conversion from data to pixel coordinates to be non-linear you will need a custom CoordinateCalculator, which we do not currently have an example of. We do have LogarithmicAxis where you can specify the LogBase. If you need some other kind of non-linearity, please let us know.
Regards
David
- Edwin Liu answered 1 month ago
- last edited 3 weeks ago
- You must login to post comments
Please login first to submit.