Profile Picture

Wrong zooming with Scrollbar enabled for small Y-data values when zoomed area is close to zero

Posted By joern kunze 12 Years Ago

Wrong zooming with Scrollbar enabled for small Y-data values when...

Author
Message
joern kunze
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221
... actually I wasn't even aware that there is another view than NDateTimeAxisPagingView - I just did use copy-paste from the given Nevron examples. Thanks a lot - now it is working much better. But one problem remains. When I have the X-axis as a real time axis - lets say with a time range of several days or even weeks and I zoom into X-Axis, so that only e.g. less than 1 day time range for the chart view remains - than the labeling of the X axis changes from the actual date with day/month (which is good) to hours. To see the hours is also good - but I need to see the date with the day as well. Is there a way to force a time axis label to show always the date as well?

Thanks again,
Best regards,
Joern

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Joern,

Is there any particular reason why you use NDateTimeAxisPagingView - you should be using NNumericAxisPagingView view which will not perform date / time calculations for the zoomed range. Otherwise the control has been tested with very small ranges and should be working without any problems.

Hope this helps - let us know if the problem persists.



Best Regards,
Nevron Support Team



joern kunze
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221
Hi Experts,
I have a problem when using the zoom functionality in a scatter plot with Y-data ranging from -1 ... 1 (equal step size 0.01). As long as the scrollbar is disabled, everything is working well. But when I enable the scrollbar:
//Add Scrollbar for Zoomed Area
_oChart.Axis(StandardAxis.PrimaryX).PagingView = new NDateTimeAxisPagingView();
_oChart.Axis(StandardAxis.PrimaryX).ScrollBar.Visible = true;
_oChart.Axis(StandardAxis.PrimaryY).PagingView = new NDateTimeAxisPagingView();
_oChart.Axis(StandardAxis.PrimaryY).ScrollBar.Visible = true;
then the displayed zoomed Y-area after the zoom has finished is not the range which was selected with the zoom rubber box.
This effect happens mainly for zooming around Y-axis values of 0.

When I change the Y-data to range from -100...100 (with equal step size 1) everything is working.

Is there a workaround to use zoom a n d scrollbar together with smaller Y-data close to zero?

Thanks for your help,
best regards,
Joern



Similar Topics


Reading This Topic