charts - 删除谷歌图表中的填充?

标签 charts google-visualization

我想知道为什么谷歌图表在不指定上/右/左轴时添加空白填充。

alt text

选择图像,你会发现除了底部已经填充了一个巨大的填充,这就是为什么,如何删除它?

具体来说,谈论左右填充。

谢谢你。

最佳答案

您可以使用 chartArea选项如下:

options.chartArea = { left: '8%', top: '8%', width: "70%", height: "70%"};

可以在此处查看更多文档:

https://developers.google.com/chart/interactive/docs/gallery/piechart#Configuration_Options

关于charts - 删除谷歌图表中的填充?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4271390/

相关文章:

jquery - googlecharts 中的端到端系列

c# - 将 excel 图表导出为图像

javascript - 如何将另一个系列添加到我的 Highcharts 中

javascript 图表库,支持 "follows"折线图与移动设备

javascript - Google 图表 pointSize 和 lineWidth 选项 - 不要更改散点图

javascript - 通过 ajax 将 json 传递给 google charts - 如何格式化日期

javascript - Highcharts 饼图数据损坏

python - matplotlib 中清晰易读的灰度线图?

javascript - 渲染谷歌折线图,曲线类型未设置且动画未按预期工作

javascript - 使用 Google Apps 脚本和 UiApp() 填充饼图