[英]How to remove all chart axis and labels from Google Charts?
首先,谷歌图表使用vAxis
,而不是yAxis
,作为“垂直”轴选项。
通过更改上述内容,您将能够删除网格线。
要隐藏基线,请设置baselineColor: 'transparent'
至于标签 --> textPosition: 'none'
var options = {
legend: 'none',
tooltip: {trigger: 'none'},
hAxis: {
gridlines: {
count: 0
},
textPosition: 'none'
},
vAxis: {
baselineColor: 'transparent',
gridlines: {
count: 0
},
textPosition: 'none'
}
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.