Hi
I want set gridlines ratio to square not rectangle, like this picture.
- abolfazl ghanbari asked 4 years ago
- last edited 4 years ago
- You must login to post comments
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
- Yura Khariton answered 4 years ago
- last edited 4 years ago
- You must login to post comments
Please login first to submit.