I have bar chart rendering issue, and not sure how or when it can occur. It works just fine when data is not too big. Please see image attachment below. Thanks!
I use jQuery to set dynamic height to the chart, and it starts working as expected. But it is still interesting if charts have build in functionality for set up dynamic height?
var chartHeight = dataStr.length * 30; $("#DynamicContent").css("height", chartHeight);
Georgi Denchev
Telerik team
commented on 23 Jun 2022, 09:46 AM
Hi, Mira,
The solution that you've implemented is the correct one. The Chart doesn't have a built-in option to make the height dynamic.
You can make the chart pannable and provide a starting and ending value for the initial categories. This way you can "scroll" the chart up and down to view a portion of the categories, instead of seeing all of them at once.
I use jQuery to set dynamic height to the chart, and it starts working as expected. But it is still interesting if charts have build in functionality for set up dynamic height?
var chartHeight = dataStr.length * 30;$("#DynamicContent").css("height", chartHeight);
Hi, Mira,
The solution that you've implemented is the correct one. The Chart doesn't have a built-in option to make the height dynamic.
You can make the chart pannable and provide a starting and ending value for the initial categories. This way you can "scroll" the chart up and down to view a portion of the categories, instead of seeing all of them at once.
Dojo sample
https://dojo.telerik.com/@gdenchev/ezEGiVoj
Best Regards,
Georgi