Pre loader

Get the difference of two major ticks values

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

Hi, is there a way to get the number of major ticks lines and to calculate the difference of two consecutive major ticks lines values? Thanks.

Version
v5
  • You must to post comments
0
0

Using the TickProvider API in SciChart WPF, you can have full control over tick labels on the chart, including knowing what tick labels the chart is going to draw.

Have a look at the TickProvider API documentation for guidance.

What you want to do is inherit NumericTickProvider (or the right TickProvider for your axis type) and override GetMajorTicks / GetMinorTicks. Calling the base method will tell you where ticks will be placed.

Let me know if this helps,

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies