JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Charts & Data Viz › Auto resize chart
Tagged: size resize
I have a chart in a jQuery dialog box.
2 problems,
although the width takes up the whole width of the dialog box, except for the padding, the height does not seem to.
Also, is there a way to auto resize the chart when the dialog box size is changed.
Thanks
Hi,
You can use CSS properties to achieve this. You can set the width and the height to 100%
Look at this example. The chart is integrated into a window and it has width and height set to 100%.
https://codepen.io/svetoslavb04/pen/MWVXJWj
Feel free to ask, if you face any difficulties!
Best Regards, Svetoslav Borislavov
Smart UI Team https://www.htmlelements.com/