1
在此处出现在中间的代码,我谷歌路线图 - vAxis线的时候没有数据传递
var data = new google.visualization.DataTable(
{
cols: [{ label: 'week', type: 'number' },
{ label: 'Completion', type: 'number' },
{ type: 'string', role: 'tooltip' }],
rows: progressList
}
);
var options = {
width: 400,
height: 265,
hAxis: {
title: 'Week',
titleTextStyle: { fontSize: 12 },
'margin-top': '20'
},
chartArea: { 'width': '82%', 'height': '75%' },
pointSize: 5,
legend: 'none',
tooltip: { showColorCode: true },
vAxis: {
title: 'Completion %',
titleTextStyle: { fontSize: 12 },
ticks: [0, 20, 40, 60, 80, 100]
}
};
chart.draw(data, options);
这是我的图表看起来如何当一个空数组[]被传入它。
有没有办法移动Vaxis线向左?
希望这有助于... – WhiteHat