hi… How can I make charts responsive? So that by changing the size of the browser or on any device, the size of the charts fits the size of the browser page? Thank you for your help
Hi David Thank you for your help… but it didn’t work… I want the size of the chart to automatically fit in the browser when I change the size of the browser.Please give more guidance. Of course, I am beginner.
i found a way to change the width and height of my graph at the same time as the browser size changes… apparently , this method works … style={'height' : '40vh'} thanks to the friends who took the time to answer
When people refer to responsive, typically they are just referring to the width of the screen.
You are correct that you can do that with the height and get that desired result. The issue then becomes does it make sense for the chart to be that large on larger screens.
My goal is to design a dashboard that changes the size of the charts according to the screen size of various devices. That device may be a tablet phone or a 50" monitor, that’s why it’s important to me. Of course, I’m a beginner and I’m learning
If you want to pursue this really well, you could do things like using dbc and have different size columns for sm and md screens, then other sizes for larger screens.
It could take it from a 1:4 ratio to a 4:1 ratio, and so forth.
There is a school of thinking that mobile should be first with designing, so keep that in mind.
When testing your site, be sure to go into developer mode and then change the output screen size to make sure it looks and interacts the way you want it.