Line chart rendering issue when data is big

0 Answers 59 Views
Charts
mira
Top achievements
Rank 1
mira asked on 20 Jun 2022, 10:45 PM | edited on 20 Jun 2022, 11:57 PM
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!
mira
Top achievements
Rank 1
commented on 21 Jun 2022, 12:34 AM | edited

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.

Dojo sample

https://dojo.telerik.com/@gdenchev/ezEGiVoj 

Best Regards,

Georgi

No answers yet. Maybe you can help?

Tags
Charts
Asked by
mira
Top achievements
Rank 1
Share this question
or