开发者

how do i set the correct height when using javascript google bar chart

开发者 https://www.devze.com 2023-01-11 11:24 出处:网络
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

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 开发者_如何学Cof items in the datatable?


Have 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

0

精彩评论

暂无评论...
验证码 换一张
取 消