Pre loader

How to get step between axis labels numbers?

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


It’s continuation of this question. I need to set text formatting in PriceLabelProvider for cursor label based on current step between nearest labels numbers. In my screenshot it would be 0.50. How can I get step between nearest labels numbers from code?

enter image description here

  • You must to post comments
Best Answer

Hi there,

Thanks for your question. The step between two labels (two major ticks) can be obtained from an axis. There is the property called MajorDelta. Please take a look at this Knowledgebase article for more information.

From within a LabelProvider, you can access it via the ParentAxis.MajorDelta property.

Hope this helps!

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.