2014-01-06 54 views
1

我的問題是容器外部的標籤被裁剪。我已經設置了屬性overflow =「none」和crop = false,但沒有任何變化。標籤「發送的電子郵件」仍然在集裝箱外面裁剪。誰能指出我的解決方案。Hightcharts漏斗陰謀。容器外部的標籤被裁剪

你可以在這裏找到我的例子:http://jsfiddle.net/d4zGF/540/

$(document).ready(function(){ 
    $('#container') 
     .highcharts({ 
      chart: { 
       type: 'funnel', 
       marginLeft:0, 
       marginRight: 10, 
       marginBottom: 20 
      }, 
      title: { 
       text: "Problem with data lables", 
       x: -50 
      }, 
      plotOptions: { 
       funnel: { 
        dataLabels: { 
         useHTML: true, 
         overflow:"none", 
         crop:false, 
         enabled: true, 
         distance:10, 
         format: '<b>{point.name}</b> ({point.y:,.0f})', 
         color: 'black' 
        }, 
        neckWidth: (20/50*0.8+0.2)*100+"%", 
        neckHeight: (20+5)/(50+20+5)*100+"%", 
        width:"100%" 
       } 
      }, 
      legend: { 
       enabled: false 
      }, 
      series: [{ 
       name: 'emails', 
       data: [ 
        ['emails sent', 50], 
        ['returns',  20], 
        ['successful', 5] 
       ] 
      }] 
     }) 
}) 

提前感謝!

回答