admin管理员组文章数量:1279236
i am using google bar chart and in the options there is a height property. depending on my dataset i need to set a different height as things either get squeezed together or there is tons of whitespace above and below the bar chart.
is there anyway to have the chart know how much height it needs based on the number of items in the datatable?
i am using google bar chart and in the options there is a height property. depending on my dataset i need to set a different height as things either get squeezed together or there is tons of whitespace above and below the bar chart.
is there anyway to have the chart know how much height it needs based on the number of items in the datatable?
Share Improve this question edited Aug 13, 2010 at 16:10 leora asked Aug 12, 2010 at 9:58 leoraleora 197k368 gold badges906 silver badges1.4k bronze badges 1- 1 Can you include an example of both extremes? I believe I have a workaround but need to make sure it is applicable. – donohoe Commented Aug 18, 2010 at 18:23
2 Answers
Reset to default 11 +200Have you run into issues dynamically resizing based on dataset size?
e.g., on the Code Playground:
line 31 width:600, height: data.getNumberOfRows() * 80,
no, at least not using the bar chart API but it wouldn't be too hard for you to make a method :D
本文标签: how do i set the correct height when using javascript google bar chartStack Overflow
版权声明:本文标题:how do i set the correct height when using javascript google bar chart - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741294338a2370728.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论