移动Highstock导航器位置

时间:2013-03-14 01:15:05

标签: highcharts highstock

是否可以将Highstock图表导航器从图表底部移动到顶部?

2 个答案:

答案 0 :(得分:2)

是的,请查看示例:http://jsfiddle.net/jBUGN/

 navigator: {
        top:40,

    },

答案 1 :(得分:1)

Sebastian的升级答案:http://jsfiddle.net/Fusher/jBUGN/18/设置marginTop:value:

而不是为xAxis和yAxis设置顶部
var chart = new Highcharts.StockChart({

    chart: {
        renderTo: 'container',
        marginTop: 140
    },

    navigator: {
        top:40,

    },
    rangeSelector: {
        selected: 1
    },

    series: [{
        name: 'USD to EUR',
        data: usdeur
    }]
});