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

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.