Make Google Chart Gauge responsive

前端 未结 2 1848
小鲜肉
小鲜肉 2020-12-09 14:39

I would like to create a Google Gauge charts which should be web-responsive. I heard about setting the width to \'100%\' should work out, but it actually doesn\'t make any c

2条回答
  •  离开以前
    2020-12-09 15:12

    You can just just assign the width 100% in options and a responsive div tag with width="100%" or here goes fiddle link where you can see the live demo.

    //html here

     

    //js here

     var options = {'title':'How Much Pizza I Ate Last Night',
                       'width':'100%',
                      };
    

提交回复
热议问题