【发布时间】:2021-03-12 14:46:34
【问题描述】:
谁能解释一下如何将多个工具提示合并为一个,类似于 Google 在 Google Search Console 中所做的事情。我在https://developers.google.com/chart/interactive/docs/gallery/linechart 中没有找到任何实现此结果的示例(请查看下图):
Google Search Console Chart Example
我猜谷歌正在使用谷歌图表库。
此外,您可以在上面的示例中看到当您将鼠标悬停在特定日期上时的垂直线。那也是怎么做的呢?
【问题讨论】:
-
尝试设置此图表选项 -->
aggregationTarget: 'category' -
它不起作用,但我发现我正在寻找的是:focusTarget:'category'