[英]Show multiple tooltips in Google Charts
I'm using the combo chart from Google Charts ( https://google-developers.appspot.com/chart/interactive/docs/gallery/combochart ) in my web application. 我在Web应用程序中使用了Google Charts( https://google-developers.appspot.com/chart/interactive/docs/gallery/combochart )中的组合图。 I have set the tooltips to show on select by specifying the option
我已通过指定选项设置了在选择时显示的工具提示
tooltip: { trigger: 'selection' }
when initializing the chart. 初始化图表时。 However, I can't find any way to allow the user to select two points at once.
但是,我找不到任何方法允许用户一次选择两个点。 Once the user selects a second point, the tooltip on the previous point closes.
一旦用户选择了第二个点,上一个点的工具提示就会关闭。
Does anyone know how to enable multi-select for the tooltips? 有谁知道如何为工具提示启用多重选择?
Thanks, 谢谢,
Paul 保罗
You can use options (at least for line chart) 您可以使用选项(至少用于折线图)
selectionMode: 'multiple',
tooltip: { trigger: 'selection' },
aggregationTarget: 'series',
so user can select multiple data points. 因此用户可以选择多个数据点。 But as I can see only one tooltip is opened with collected data.
但是正如我所看到的,打开的工具提示中只有收集的数据。
Using 运用
selectionMode: 'multiple',
tooltip: { trigger: 'selection' },
aggregationTarget: 'none',
you get multiple tooltips opened. 您会打开多个工具提示。
您需要添加配置选项focusTarget: 'category'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.