Highcharts更新中断了之前的布局

时间:2016-02-10 12:25:35

标签: javascript web graph highcharts

我使用的是highcharts 4.0.4,在更新到highcharts 4.2.3之后,结果是:

Highcharts graph overlay

如何解决这个问题?

修改 应该是这样的:

Highcharts graph don't overlay

编辑2 这是jsfiddle

Highcharts.chart('container', {

    xAxis: {
    	type: 'datetime'
    },

    series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
        type: 'line'
    }],
    chart: {
      renderTo: 'container',
      reflow: false,
      zoomType: 'x'
    },
    legend: {
        align: 'bottom',
        // verticalAlign: 'bottom',
        // layout: 'vertical',
        layout: 'horizontal'
      },
    title: {
      text: 'Explorer'
    },

});
#container {
    min-width: 300px;
    max-width: 800px;
    height: 300px;
    margin: 1em auto;
}
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/offline-exporting.js"></script>

<div id="container"></div>

1 个答案:

答案 0 :(得分:1)

删除

解决了这个问题
  

对齐:'底部'