How to make google chart API responsive? -


i creating 2 charts line chart , donut chart on same html page using google js api. these charts not responsive. how can make charts responsive?

the google charts api not designed responsiveness in mind, specifically. default size of chart fill element it's being rendered into, can use css , media queries make responsive design.

the real problem once chart drawn, doesn't change it's size in desktop window resize-type scenario. in angular google chart listen window's resize event , redraw chart.

i've seen of resize strategy paired bit of javascript keep chart same aspect ratio no matter how wide is.

anything more specific need more detailed question. intentionally not including code answer, because whatever write wrong situation.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -