Highcharts x轴偏移,但在调整大小后恢复

时间:2012-08-08 15:24:52

标签: javascript highcharts offset

在最新版本的Highcharts中,我的x轴线大于预期的偏移量。但是,如果我打开Firebug(重新调整页面大小)并关闭它,我的x轴就在他的正确位置。

在打开Firebug之前:here

在:here

以下是代码:

options = {
    chart: {
        type: 'column',
        animation: false,
        renderTo: 'chart1'

    },
        xAxis: {
            categories: ['STBL','AHM OE','TCR'],
            labels: {
                rotation: -45,
                overflow: "justify",
                align: 'right',
                y: 20
            }
        },
        yAxis: {
            min: 0,
            title: {
                text: ''
            }
        },
        legend: {
            enabled: false,

        },
        tooltip: {
            formatter: function() {
                return ''+
                    this.x +': '+ Highcharts.numberFormat(this.y, 5);
            }
        },
        plotOptions: {
            column: {
                borderWidth: 0,
                pointWidth: 8
            }
        },
        series: [{
            name: '',
            data: [9.93782224348591E-4,0.0012882708991709339,0.01952599999881562]
        }]
    };
var chart1 = new Highcharts.Chart(options);

有人能帮帮我吗?

由于

0 个答案:

没有答案