This is a migrated thread and some comments may be shown as answers.

How to keep grid squares on grid constant on Zooming?

3 Answers 68 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Coder
Top achievements
Rank 1
Coder asked on 19 Feb 2014, 04:22 AM
Hi,

I have a grid designed as shown in the first image when my Zoom is at say, Zoom="16, 5":

I have implemented a zoom button that when clicked, will increase the zoom width and height in increments of 6 and 1 respectively.

When I increment to  say, "28, 7" the grid now looks like that in the second image.

Is there any way for me to force the grid to maintain the same height/size proportion when zomming?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 21 Feb 2014, 04:31 PM
Hello,

Thank you for contacting us on that matter. I can understand your scenario.

However, the RadCartesianChart is designed so that the grid lines always snap to the ticks of the axes. Since this is core functionality of the charting component there is no way to change it.


Regards,
Martin
Telerik
0
Coder
Top achievements
Rank 1
answered on 21 Feb 2014, 05:05 PM
Hi,

well, is there a way, using Behaviors to intercept and recalculate the grid spacing as the zoom is changed, so as to keep the x to y grid widths fixed in proportion at least?

If I can't have the same size squares, can I  have them at least as squares instead of rectangular?

The attached photos show two extreme cases befor and after zooming. This is simply not acceptable. Is there a work around?
0
Martin Ivanov
Telerik team
answered on 26 Feb 2014, 05:05 PM
Hi Coder,

Could you please take a look at the attached screenshot and draw grid line everywhere you think there must be one? This will help us better understand your requirement.

Also please note that the grid lines of the ChartView snap to the ticks of the axes. The goal of this behavior is to produce better visual representation of the lines.

Regards,
Martin
Telerik
Tags
ChartView
Asked by
Coder
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Coder
Top achievements
Rank 1
Share this question
or