Google图表折线图-关闭单个列的工具提示 [英] Google chart line chart - turn off tooltip for a single column
本文介绍了Google图表折线图-关闭单个列的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I know this question was already asked before Using Google Visualization API, how to turn off tooltips for a single column?, but i didn't get familiar answer.Please can somebody tell me how to turn off tooltip for a single column?.I tried this
chart.draw(data, {trigger:'none'});
但是它关闭了所有列的工具提示.我只希望禁用工具提示的一列,而其他所有列都应该启用工具提示.
but it turns off tooltip for all the columns.I want only one column with tooltip disabled and all other columns should have enabled tooltip.
推荐答案
选项enableInteractivity: false
阻止了系列选择选项,等等.
The option enableInteractivity: false
blocked alse the series select option and etc.
您可以通过更好的方式做到这一点:
You can do it with better way:
Option = {
series : {
0: { tooltip : false}, // disable tooltip
1: { tooltip : true}, // enable tooltip
2: { tooltip : false},
3: { tooltip : true},
4: { tooltip : true},
}
}
它非常适合我.
这篇关于Google图表折线图-关闭单个列的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文