2014-03-24 71 views
0

我們有一個條形圖,其中的列不能到達圖形容器的頂部。我們如何刪除它?刪除欄柱上方的填充

{ 
data: { 
    chart: { 
     type: 'column', 
     plotBackgroundColor: null, 
     plotBorderWidth: null, 
     plotShadow: false, 
     margin: [0, 0, 0, 0], 
     backgroundColor:'rgba(255,255,255,0.002)' 
    }, 
    colors: TallPoppies.templateColours, 
    legend: { 
     enabled: false 
    }, 
    title: null, 
    plotOptions: { 
     series: { 
      animation: false 
     }, 
     column: { 
      cursor: 'pointer', 
      dataLabels: { 
       enabled: false 
      }, 
      groupPadding: 0, 
      pointPadding: 0.1, 
      borderColor: 'pink' 
     } 
    }, 
    series: [{ 
     type: 'column', 
     name: 'Skill', 
     data: [ 
      { name:'blah 1', 
       color: 'red', 
       y: 2 
      }, 
      { name:'blah 2', 
       color: 'yellow', 
       y: 4 
      }, 
     ] 
    }], 
    xAxis: { 
     lineWidth: 0, 
     minorGridLineWidth: 0, 
     lineColor: 'transparent', 
     labels: { 
      enabled: false 
     }, 
     minorTickLength: 0, 
     tickLength: 0 
    }, 
    yAxis:{ 
     gridLineWidth: 0, 
     minorGridLineWidth: 0 
    } 
} 

}

回答

3

集:

參見:

yAxis:{ 
    endOnTick: false, 
    maxPadding: 0, 
    gridLineWidth: 0, 
    minorGridLineWidth: 0 
}