Panning does not work properly with axis.UseRangeInflateWhenZoomed


Panning does not work properly with axis.UseRangeInflateWhenZoomed
Author
Message
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K

As you pan, instead of the axis scale covering the same range, the axis scale continuously expands until it reaches its full extent.

I presume this is because the inflation is continuously being applied. Is this a bug that can be fixed, without me overriding the panning class?

Thanks

Kevin


Reply
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K

Not sure what you mean. All I have is:

               chart.Axis(StandardAxis.PrimaryY).UseSeriesInflateWhenZoomed = true;

Zoom the chart, then pan - the y-range expands as I pan.
If I set UseSeriesInflateWhenZoomed to false, then panning behaves correctly.

I already have a CustomDataPanTool because I want to pan using the Shift key, so I have fixed the issue by using GetActiveChart(), turning off UseSeriesInflateWhenZoomed in the BeginDrag method, and back on again in the EndDrag method (keeping note of the settings on each axis so they can be restored).

It would be good if thsi was done automatically. I assume it already is when zooming?

Thanks

Kevin

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search