Highstock - why is min/maxPadding on xAxis ignored

让人想犯罪 __ 提交于 2019-12-11 06:23:54

问题


Why are min/maxPadding ignored? I would like to have padding from both sides on xAxis, that is of type 'datetime'

Check this example out: http://jsfiddle.net/matijash/zs3Ag/

$(function() {
$('#container').highcharts('StockChart', {

    chart: {
    },

    xAxis: {
        minPadding: 0.5,
        maxPadding: 0.5
    },

    rangeSelector: {
        selected: 1
    },

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

回答1:


In the Highstock paddings are not supported,onyl in highcharts.



来源:https://stackoverflow.com/questions/20734679/highstock-why-is-min-maxpadding-on-xaxis-ignored

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