javascript - 当数据点太高时,如何在 Highcharts 工具提示中显示除 x 和 y 之外的值?

标签 javascript highcharts

我正在尝试使用 Highcharts 绘制折线图,​​但大量的点中没有某些字段,因此工具提示无法显示相关数据。我还设置了"turboThreshold": 1000000

数据格式

[{
    "name": "Tasks",
    "data": [{
        "title": "Jog Loaned",
        "start_time": "14 Dec 2014 7:51:31",
        "end_time": "14 Dec 2014 7:55:27",
        "x": 1418523927000,
        "y": 33.89,
        "start_time_epoch": 1418523691000
    }, {
        "title": "Prod - RepliINte SEMI Grace",
        "start_time": "14 Dec 2014 7:55:27",
        "end_time": "14 Dec 2014 8:0:44",
        "x": 1418524244000,
        "y": 31.39,
        "start_time_epoch": 1418523927000
    }],
    "turboThreshold": 1000000
}];

Plunker link to the problem

最佳答案

这与您在 highstock 中启用了数据分组有关,因此对点进行分组并跳过额外的参数。

关于javascript - 当数据点太高时,如何在 Highcharts 工具提示中显示除 x 和 y 之外的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28272350/

相关文章:

javascript - 如何使用 JavaScript 更改字符串字体颜色

javascript - 如何根据另一个数组的值对数组进行排序?

javascript - 这个嵌套的 switch 语句有什么问题?

javascript - Highcharts : Venn Diagram how to show total and union numbers?

javascript - 在 AngularJS 中包装 HighChart

javascript - HighCharts 错误的 xAxis 标签

php - 使用 highcharts 在条形图中传递 php 变量

javascript - highchart 将 x 轴标签放置在日期时间轴上的刻度之间

javascript - fabric.js 字体在 IE (win 7) & OS X 中呈现

javascript - jquery - 将 JSON 和 HTML 从 AJAX 响应中分离出来