This is a migrated thread and some comments may be shown as answers.

disable automatic redraw after zoom

5 Answers 210 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 17 Sep 2018, 03:06 PM

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

Sort by
0
Tsvetina
Telerik team
answered on 19 Sep 2018, 12:38 PM
Hello Peter,

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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Peter
Top achievements
Rank 1
answered on 21 Sep 2018, 09:53 AM

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

0
Peter
Top achievements
Rank 1
answered on 24 Sep 2018, 07:51 AM

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

 

 

 

 

0
Tsvetina
Telerik team
answered on 25 Sep 2018, 09:26 AM
Hello 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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Peter
Top achievements
Rank 1
answered on 25 Sep 2018, 02:02 PM

Thank you for the suggestion of using the stock chart. I test it.

Peter

 

Tags
Charts
Asked by
Peter
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Peter
Top achievements
Rank 1
Share this question
or