Hello,
can I disable the automatic redraw or refresh of zoom?
I make a zoomEnd function, which make a new ajax request to get the data in better resolution for the zoom range.
This function redraw the chart at the end.
This need some time and in the meantime the chart show the old data with the rough resolution. Would be nice to suppress this.
Peter
5 Answers, 1 is accepted
If you follow the custom pan and zoom example, the Chart will not be redrawing automatically on zoom because the zoomable feature is not enabled at all:
Bar Charts / Custom pan and zoom
If your implementation uses similar logic, you could try to just remove the zoomable: true setting.
Regards,
Tsvetina
Progress Telerik
Hello Tsvetvina,
in this example I can not zoom with <shift>+left-mouse-key. There is also not a zoom preview shown like in https://demos.telerik.com/kendo-ui/bar-charts/pan-and-zoom
The mouse wheel trigger the zoom event. But today the most visitors have no mouse - they use a smartphone.
How can I implement a zoom with preview (like built in with <shift>+left-mouse-key) which work also on touch devices?
Regards,
Peter
Hello Tsvetvina,
the zoom work also on touch device if the shift-key is disabled => Zoom only with left mouse key.
zoomable: {
selection: {
key:
"none"
}}
Peter
For a more touch-friendly solution, you could also consider using the Stock Chart with virtualization. There, the user can navigate the Chart data through the navigator and data is loaded on demand from the server:
Stock Charts / Virtualization
The Stock Chart can be used with regular Line, Bar, Area series as well. You can see a modification of the above example using bar series in this Dojo:
https://dojo.telerik.com/eRaviZeJ
If you browse it on a mobile device, you will see that it is quite easy to zoom the data by changing the range selected in the navigator.
Regards,
Tsvetina
Progress Telerik
Thank you for the suggestion of using the stock chart. I test it.
Peter