Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用谷歌条形图,在选项中有一个高度属性。根据我的数据集,我需要设置不同的高度,因为东西要么挤在一起,要么条形图上方和下方有大量空白。
无论如何让图表根据数据表中的项目数知道它需要多少高度?
您是否遇到过根据数据集大小动态调整大小的问题?
例如,在代码游乐场:
line 31 width:600, height: data.getNumberOfRows() * 80,
不,至少不使用条形图 API,但创建方法不会太难:D