Sko*_*kot 4 google-visualization
我有一些代码将我的V轴刻度设置为0 - 4.然而我删除了它,现在我不记得我是如何让它再次工作的.请参阅下面的我的图表代码,以及我之前使用过的代码.
这就是我以前用过的......
vAxis: {
viewWindowMode:'explicit',
viewWindow: {
max:100,
min:99.8
}
}
Run Code Online (Sandbox Code Playgroud)
下面是我的图表
// Create a line chart, passing some options
var LineChart = new google.visualization.ChartWrapper({
'chartType': 'LineChart',
'containerId': 'chart_div',
'options': {
//'width': 300,
'height': 300,
'legend': 'top',
'backgroundColor': '#eeeeee',
'colors': [ '#8ea23f'],
'pointSize': 5,
'title': 'Selected Site and Species abundance over time'
},
'view':{'columns':[0,2]},
});
Run Code Online (Sandbox Code Playgroud)
你去:
'vAxis': {'title': 'Something Here',
'minValue': 0,
'maxValue': 4},
Run Code Online (Sandbox Code Playgroud)