作者:沉醉在温柔箱 | 来源:互联网 | 2023-05-17 15:54
JustgettingstartedinGooglechartsandImtryingtocreatealinegraphthatfillstheavailable
Just getting started in Google charts and I'm trying to create a line graph that fills the available space. Seems like the charts are locked in a certain aspect ratio though as no matter what I change the height and width properties to for the chart and chart div element, the result doesn't match my dimensions.
刚开始使用谷歌图表,我想创建一个填满可用空间的线形图。似乎图表被锁定在一个特定的长宽比中,尽管无论我如何为图表和图表div元素更改高度和宽度属性,结果都与我的尺寸不匹配。
Are Google charts fixed that way or is there an override or aspect ratio option that I am missing?
谷歌图表是按照这种方式修复的吗?还是我没有覆盖或纵横比选项?
You can find an example here:
你可以在这里找到一个例子:
http://www.walkingcarpet.net/graphs/unemployment-rate/
http://www.walkingcarpet.net/graphs/unemployment-rate/
Thanks!
谢谢!
2 个解决方案