Kendo Chart - display chart, set the initial level zoom

1 Answer 71 Views
Charts
Tal
Top achievements
Rank 1
Tal asked on 13 Feb 2023, 12:56 PM
Hey, when I open chart it opens the chart in zoom in.
How can I set the initial level zoom, that when I go in it will show me the whole chart ? (without scrolling for zoomout)

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 16 Feb 2023, 07:15 AM

Hello Tal,

You can set the initial zoom zoom level by setting categoryAxis.min and categoryAxis.max properties. 

Dojo demo: https://dojo.telerik.com/APaDalaD

Additionally, below I am posting an article on how to maintain the pan and zoom state of the Chart on rebind you might find useful:

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Mohan
Top achievements
Rank 1
commented on 25 Mar 2024, 01:53 PM

Is there a way to dynamically change the Major and Minor units on the category (x) axis when zooming out this way the labels will not be overcrowded with a larger data set?
Nikolay
Telerik team
commented on 26 Mar 2024, 11:16 AM

Hi Mohan,

You can dynamically update the Chart setting, including the Major and Minor units, by using the setOptions() method.

You can see this in action in the below demo:

Regards,

Nikolay

Tags
Charts
Asked by
Tal
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or