Highstock烛台图表颜色错误

时间:2013-04-14 11:15:26

标签: highcharts highstock

http://jsfiddle.net/uVKNY/

看第3支蜡烛,Open>关闭,但蜡烛是空的,为什么? [1365870600000,3879.8,3879.8,3806.0,3860.0]

// create the chart
var data = [[1365867000000,3905.1,3943.7,3903.6,3903.9],[1365868800000,3903.8,3940.0,3804.0,3804.0],[1365870600000,3879.8,3879.8,3806.0,3860.0],[1365872400000,3920.0,3920.0,3859.0,3870.0],[1365874200000,3900.0,3900.0,3615.8,3852.0],[1365876000000,3702.1,3702.1,3502.0,3554.9],[1365906600000,3411.19,3472.54,3324.8,3400.0],[1365908400000,3460.0,3462.9,3400.0,3462.9],[1365910200000,3472.54,3498.58,3401.0,3498.0],[1365912000000,3420.0,3469.9,3400.0,3429.9],[1365913800000,3455.0,3467.0,3402.0,3466.0]];
    $('#container').highcharts('StockChart', {


        rangeSelector : {
            selected : 1
        },

        title : {
            text : 'AAPL Stock Price'
        },

        series : [{
            type : 'candlestick',
            name : 'AAPL Stock Price',
            data : data,
            dataGrouping : {
                enabled: false
            }
        }]
    });
});

1 个答案:

答案 0 :(得分:0)

你认为它应该是黑暗的,因为第三次收盘价低于第三次收盘价。但事实上,如果收盘价低于之前的收盘价,那么这个逻辑就是“黑暗的”。见这里:https://github.com/highslide-software/highcharts.com/issues/1395