angular - 工具提示中的角度 Highchart 多个值
问题描述
我正在研究一个高图表。系列的数组如下所示:
graphData = [{name:"Thunder", data:[['11PM',3726],['5PM',2344]]},
{name:"Hurricane", data:[['11PM',5736].['5PM',5244]]}]
对于工具提示,如果我将鼠标悬停在任何一条线上,比如说晚上 11 点,我想同时显示来自 Thunder 和 Hurricane 的数据。现在,它只显示来自相应图表线的数据。
tootlip:{
pointFormat: "{point.series.name}: {point.y:0f}"
}
series: this.graphData
建议?谢谢!
解决方案
您需要启用共享工具提示:
tooltip: {
shared: true
}
现场演示:http: //jsfiddle.net/BlackLabel/hpkLgjbs/
API 参考: https ://api.highcharts.com/highcharts/tooltip.shared
推荐阅读
- html - 缩小屏幕尺寸时保持边距?
- c++ - 模板化字段引用模板参数可以作为第一个模板参数传递吗?
- python - 使用关联值旋转一个数据框列以创建多列
- android - 如何使用 Kotlin 的 Parcelize 对 HashMap 进行 Parcelize?
- bash - 带有 for 循环的远程 SSH 命令
- html - 链接到另一个 html 页面的按钮标记
- c# - HTTPS url 上的 C# WebRequest POST 方法自动使用 http url
- c# - IF 和 Else 语句异常处理帮助 - Else 消息不起作用
- c++ - Kosaraju 的 SCC 递归程序在执行大输入时自动终止
- php - 如何在没有重复的情况下进行排列?