Pre loader

how to set gridlines ratio to square

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
I want set gridlines ratio to square not rectangle, like this picture.

Version
3.0.0.4253
Images
  • You must to post comments
0
0

Hi there,

This can be achieved by customizing tick generation algorithm for both XAxis and YAxis. Depending on your requirements this can be done by picking up Major/MinorDelta values for axes in a such way that they will have the same size on screen ( so MajorDelta value in pixels for XAxis is equal MajorDelta value in pixels for YAxis ), but this will be difficult to use in case of chart zoom because zoom can be non uniform ( you zoom one axis and other remains the same ) and in this case axes can go out of sync. If it’s the case then I would suggest you to create custom TickProvider and implement custom algorithm for generation of ticks, but in this case you need to take into account that such ticks may produce labels which after formatting can look not very nice ( e.g. values with many digits after decimal point ).

So can you provide more information about your case?

Best regards,
Yura

  • 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