我有以下代码:
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Year', 'People'],
['2010',0]
]);
// Create and draw the visualization.
new google.visualization.ColumnChart(document.getElementById('visualization')).
draw(data,
{title:"Yearly Coffee Consumption by Country",
width:600, height:400,
hAxis: {title: "Year"},
backgroundColor: 'none'
}
);
}
这给了我如下图
我该怎么做才能避免显示在Y轴负值? 我曾尝试加入vAxis: {minValue:0}
没有任何的运气。
没有这些图表游乐场/沙箱: 谷歌图表游乐场