Nevron Forum

Panning does not work properly with axis.UseRangeInflateWhenZoomed

https://www.nevron.com/Forum/Topic7487.aspx

By Kevin Harrison 1 - Friday, February 22, 2013

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

By Nevron Support - Monday, February 25, 2013

Hi Kevin,

Can you post the code you use to automate the control - as we could not replicate it with the examples. It's probably a result of configuration which as you suggest continuously expands the axis rage...

By Kevin Harrison 1 - Monday, February 25, 2013

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

 

By Nevron Support - Tuesday, February 26, 2013

Hi Kevin,

We were able locate / fix this problem and will publish a SP very soon...

By Kevin Harrison 1 - Tuesday, February 26, 2013

Thanks guys. Excellent service as usual!

Kevin

Now, if only you'd tell us what was in each SP.

By Kevin Harrison 1 - Wednesday, February 27, 2013

Picked up the new SP which has fixed the panning issue thanks.

However, I notice that if I zoom twice (with animation on), then my settings of UseRangeInflateWhenZoomed or use UseSeriesInflateWhenZoomed have been lost the second time I zoom. Also, what is the difference between these two settings and when should each be used? There's nothing in the diocumentation that I can find about them 

Thanks

Kevin