2013-04-17 99 views
4

使用Highcharts我想將頁腳文本放在圖表下。我能看到這樣做的唯一方法是使用credits屬性。但長文本看起來很擁擠。有沒有一種方法來設置信貸來增加間隔?Highcharts頁腳間距

http://jsfiddle.net/QbEvN/

credits: { 
     position: { 
      align: 'center' 
     }, 
     text: 'this is some really long text that i am using as a footer', 
     href: null 
    }, 
+0

爲什麼不直接插入頁腳HTML以下容器? : – omikron

回答

6

如果您已經開始利用您的頁腳的信用選項,下面是一些你的願望,你可以使用它的空間選擇:

chart: { 
     marginBottom: 100 //space from axis to chart bottom 
    }, 
    legend: {y: -20}, // position between axis and legend 

    credits: { 
     text: 'This is so super duper uper long text. Look at all this space!', 
     position: { 
      align: 'center', 
      y: -5 // position of credits 
     }, 
     style: { 
      fontSize: '14pt' // you can style it! 
     } 
    }, 

小提琴here

enter image description here