如何让高档旗帜保持不变

时间:2013-11-06 15:51:21

标签: highcharts highstock

jsfiddle中,我希望小绿圈在悬停时保持不变。

在HighStock中,当我悬停在旗帜上时,如何让它们保持稳定(不试图前进)?

//

1 个答案:

答案 0 :(得分:0)

通常,您不能在单个系列中使用具有相同x值的点。你需要使用像这里的分隔系列:http://jsfiddle.net/5pXfM/5/

{
        type: 'flags',
        data: [{
            x: Date.UTC(2011, 2, 10),
            title: ' ',
            text: 'Do not move'
        }],
        onSeries: 'dataseries',
        shape: 'circlepin',
        color: '#5F86B3',
        fillColor: 'rgba(50, 255, 50, .75)',
        y: -10,
        stackDistance: 5
    },{
        type: 'flags',
        data: [{
            x: Date.UTC(2011, 2, 10),
            title: ' ',
            text: 'Do not move'
        }],
        onSeries: 'dataseries',
        shape: 'circlepin',
        color: '#5F86B3',
        fillColor: 'rgba(50, 255, 50, .75)',
        y: -30,
        stackDistance: 5

    }