删除highcharts柱形图左侧的空白区域

时间:2017-01-23 15:00:48

标签: highcharts

我想删除图表左侧的空白区域。 到目前为止找不到任何解决方案。

好的,所以我希望所有列都放在刻度线的右侧,就像在小提琴中一样,并删除y轴和第一个刻度之间的空白区域。 提前致谢



$(function() {
  Highcharts.chart('container', {
    chart: {
      type: 'column'
    },
    title: {
      text: 'Efficiency Optimization by Branch'
    },
    xAxis: {},
    yAxis: [{
      min: 0,
    }],
    series: [{
      name: 'Employees',
      color: 'rgba(165,170,217,1)',
      data: [150, 73, 20],
      pointPadding: 0.3,
      pointPlacement: 0.25
    }, {
      name: 'Employees Optimized',
      color: 'rgba(126,86,134,.9)',
      data: [140, 90, 40],
      pointPadding: 0.3,
      pointPlacement: 0.10
    }]
  });
});

<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
&#13;
&#13;
&#13;

0 个答案:

没有答案