When a chart have long labels on the X axis (like date and time) the zoom is not accurate on the horizontal extents with both mouse wheel and drag area.
The reason is probably that the screen coordinates of the selected area are not mapped correctly on the X axis. The mapping works fine for tooltip.
You can verify this behavior in the attached Solution. In the images you can see the selected area (01), that the zoomed area is a region with no points (02) and the actual position of the points.
Thank you Martin, SmartLabelsMode="SmartStep" works fine and labels are no longer overlapped.
I don't need the fix anymore.
Regards,
Guido
Hello Guido,
We've checked this and we can confirm that this is an issue with setting the zoom range of the chart in some situations. You can find your Telerik points updated as a small gesture of gratitude for reporting this.
To work this around, you can disable the automatic step calculation of the axis, during the zooming. To do so, set the IsStepRecalculationOnZoomEnabled property of the axis to false.
<telerik:DateTimeContinuousAxis IsStepRecalculationOnZoomEnabled="False" />
Or alternatively, you can enable the SmartLabelsMode of the axis.
<telerik:DateTimeContinuousAxis SmartLabelsMode="SmartStep"/>
Regards,
Martin Ivanov
Progress Telerik
Hi Guido,
Thank you for the provided project and details.
I was able to observe this behavior, however, I will need more time to debug the source code. I will contact you again in the next couple of days with further information regarding your scenario.
Regards,
Dinko
Progress Telerik