gpt4 book ai didi

google-visualization - 设置固定轴值

转载 作者:行者123 更新时间:2023-12-04 22:12:58 25 4
gpt4 key购买 nike

我有一些代码将我的 V 轴比例设置为 0 - 4。但是我删除了它,现在我不记得我是如何让它再次工作的。请参阅下面的图表代码,以及我认为我以前使用过的代码。

这是我之前用过的...

vAxis: { 
viewWindowMode:'explicit',
viewWindow: {
max:100,
min:99.8
}
}

下面是我的图表
          // 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]},


});

最佳答案

你去吧:

 'vAxis': {'title': 'Something Here',
'minValue': 0,
'maxValue': 4},

关于google-visualization - 设置固定轴值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18489757/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com