2014-02-19 68 views

回答

2

您需要設置:

 plotOptions: { 
      bar: { 
       dataLabels: { 
        enabled: true, 
        inside: true, 
        align: 'left', 
        x: 390 //offset 
       } 
      } 
     }, 

演示:http://jsfiddle.net/5aF54/1/

+0

謝謝!但是,是否可以根據鋼筋長度動態設置偏移量? –

+1

只能設定固定值。你可以在'load'函數中獲取條高(bar與柱形圖相同,但倒置),然後調用'series.update({dataLabels:{x:newValue}});'更新dataLabels的位置。 –

+0

你可以解釋清楚,如何根據酒吧的高度動態改變位置 – user1645290

相關問題