具有日期时间轴=>的高价图表日期不按顺序时的工具提示错误

时间:2013-03-29 23:31:16

标签: highcharts

看看这张图表。

工具提示似乎混淆了不按时间顺序排列的点。

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'line'
        },
        title: {
            text: 'Tooltip issue'
        },
        subtitle: {
            text: 'tooltip are not well managed when points are out of chronological sequence'
        },
        xAxis: {
            type: 'datetime',
        },

        series: [{
            name: 'S1',

            data: [
                [Date.UTC(2013,  0, 15), 1   ],
                [Date.UTC(2013,  1, 15), 2   ],
                [Date.UTC(2013,  3, 15), 3   ],
                [Date.UTC(2013,  2, 15), 4   ],
                [Date.UTC(2013,  4, 15), 5   ]
            ]
        }]
    });
});

在此处观看:jsfiddle showing the bug

这是一个错误吗? 可以修复吗?

谢谢。

1 个答案:

答案 0 :(得分:0)

工具提示对我来说很好看。按照数据中的规定,我在4月份获得3分,在3月份获得4分。