Ken*_*and 18 google-visualization bar-chart
我正在使用Google的javascript可视化库生成一个BarChart.我想使图表中的条形图比现在更宽,但我在文档中找不到任何显示如何配置每个数据集的条形宽度的内容.
有帮助吗?
Jos*_*but 19
有同样的问题,我想发布后人的帖子.bar.groupWidth似乎是设置它的方法.
https://developers.google.com/chart/interactive/docs/gallery/barchart
例如:
var options = {
title: "Density of Precious Metals, in g/cm^3",
width: 600,
height: 400,
bar: {groupWidth: "95%"},
legend: { position: "none" },
};
var chart = new google.visualization.BarChart(document.getElementById("barchart_values"));
chart.draw(view, options);
Run Code Online (Sandbox Code Playgroud)