SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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?
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!
Please login first to submit.