Move the Highstock navigator position

2020-07-22 16:22发布

Is it possible to move the Highstock chart navigator from the bottom of the chart to the top?

2条回答
等我变得足够好
2楼-- · 2020-07-22 16:47

Yes it is possible, please take look at example: http://jsfiddle.net/jBUGN/

 navigator: {
        top:40,

    },
查看更多
神经病院院长
3楼-- · 2020-07-22 16:49

Upgraded answer from Sebastian: http://jsfiddle.net/Fusher/jBUGN/18/ Instead of setting top for xAxis and yAxis, set marginTop: value:

var chart = new Highcharts.StockChart({

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

    navigator: {
        top:40,

    },
    rangeSelector: {
        selected: 1
    },

    series: [{
        name: 'USD to EUR',
        data: usdeur
    }]
});
查看更多
登录 后发表回答