Pre loader

Update majorDelta when min max changed

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 have requirement do change majorDelta/autoTicks for different ranges
for example:
If the max is <= 10,000, MaxAutoTicks should be 5
If the 10,000 < max < 20,000, MaxAutoTicks should be 4

what is the best way to achieve this taking into account user zooming and adding data in the background?

  • You must to post comments
0
0

Hi Sahon,

Probably DefaultViewportManager. This is a back-door API in SciChart that lets you customize the VisibleRange per axis. If you see the implementation here you can override various methods which are called by SciChart to set the range. If you leave the base implementation un-changed you can essentially use this as a place to get a notification when SciChart requests VisibleRange and update AutoTicks/MaxAutoTicks accordingly.

Best regards,
Andrew

  • sahon
    Thank you for reply, but I would use axis.VisibleRangeChanged event and apply MajorDeltas on the sender axis
  • 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