开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜