SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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.