Pre loader

Non linear numeric axis

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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

Version
3.4.652
  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.