gpt4 book ai didi

charts - 无法隐藏谷歌图表趋势线上的工具提示(方程)

转载 作者:行者123 更新时间:2023-12-04 16:21:17 27 4
gpt4 key购买 nike

你能帮我在 this page 上的谷歌图表上隐藏趋势线上的工具提示(方程)吗? ?

谢谢

以下是我正在使用的图表选项:

var options = {
title: 'Weight of pro surfer vs. Volume of his pro model',
hAxis: {title: 'Weight (kg)', minValue: 53, maxValue: 100}, //55
vAxis: {title: 'Volume (l)'}, //, minValue: 20, maxValue: 40}, //20
legend: 'none',
colors: ['#000000'],
series: {
1: { color: '#06b4c8' },
2: { color: '#575e6a' }
},
legend: {position: 'top right', textStyle: {fontSize: 8}},
chartArea: {width: '60%'},
//tooltip:{trigger:'none'}, //it hides all tooltips on the whole graph
trendlines: { 0: {//type: 'exponential',
visibleInLegend: true,
color: 'grey',
lineWidth: 2,
opacity: 0.2,
tooltip:{trigger:'none'}, //does nothing
labelInLegend: 'Linear trendline\n(Performance)'
}
} // Draw a trendline for data series 0.
};

如果我添加 tooltip:{trigger:'none'},之前 trendlines它隐藏了整个图形的工具提示。

最佳答案

它已实现但尚未记录:

trendlines: {0: {tooltip: false}}

关于charts - 无法隐藏谷歌图表趋势线上的工具提示(方程),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26534226/

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