我正在我的项目中使用谷歌折线图和 angularjs 指令,我正在搜索如何在悬停时获得垂直线,例如谷歌趋势 https://trends.google.com/trends/explore?q=angular相反,放置固定线路,但我找不到如何做到这一点。
这就是我想要尝试做的:
我只是隐藏垂直线,但在鼠标悬停时不显示,这是我对 angular-google-chart 指令的选项
options: {
vAxis: {
title: 'My title',
gridlines: {
count: 10
}
},
hAxis: {
title: 'title hAxis',
gridlines: {
color: 'transparent'
}
}
}
现在可以通过标准配置选项使用十字准线:
https://developers.google.com/chart/interactive/docs/crosshairs https://developers.google.com/chart/interactive/docs/crosshairs
您的案例的示例配置:
crosshair: {orientation: 'vertical', trigger: 'focus'}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)