Move the Highstock navigator position

*爱你&永不变心* 提交于 2019-12-21 20:51:17

问题


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


回答1:


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

 navigator: {
        top:40,

    },



回答2:


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
    }]
});


来源:https://stackoverflow.com/questions/15399490/move-the-highstock-navigator-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!