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

Fitting kendo bar chart into an iframe

1 Answer 93 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Vamshi
Top achievements
Rank 1
Vamshi asked on 19 Dec 2018, 06:28 AM

     Hi, I have an iframe whose width and height can be changed dynamically. When the iframe width is increased/decreased, the chart is adjusting accordingly. However, when iframe height is decreased, the chart isn't getting auto-adjusted (fit) and scroll bar appears.

I know there is a property called chartArea to set height and width. However, given an iframe dimensions, I would like to know if there are any properties so that the chart gets auto-adjusted to fit and display.

Thanks
Vamshi

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Dec 2018, 03:17 PM
Hello Vamshi,

To resize the Chart together with its container, you can call the Chart resize method each time the container is resized. Alternatively, use kendo.resize() method to resize all Kendo UI widgets, including Charts, within a container.

You can see an example in this article:
Auto-Resize Widgets for Data Visualization


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.
Tags
Charts
Asked by
Vamshi
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or