Highcharts JS显示工具提示,因为图表动画正在进行中

时间:2013-06-24 12:02:30

标签: javascript highcharts highstock

我正在使用Highcharts构建自定义区域图表。这个系列的动画为15000.如何在图表加载/动画时显示和隐藏每个Y值?就像工具提示在图表的最后加载点之上设置动画一样。

部分代码如下:

tooltip: {
enabled:true,
shared:true,
formatter: function() {
    var number;

    $.each(this.points, function(i, smth) {
        number = "Value: " + smth.y;
    });
    return number;
}
},
plotOptions: {
areaspline: {
    lineWidth: 1,
    marker: {
        enabled: false
    },
    shadow: false,
    states: {
        hover: {
            lineWidth: 1
        }
    },
    treshold: null
}
},
series: [
{
    animation: {
        duration: 15000
    },
    fillColor: '#fff',
    color: '#fff',
    fillOpacity: 1,
    pointStart: 0,
    data: [51, 35, 41, 56, 22, 20, 34, 21, 58, 22, 20, 32, 41, 55, 22]
}
]

0 个答案:

没有答案