2013-04-17 2 views
4

하이 차트 사용하기 바닥 글 텍스트를 차트 아래에 놓고 싶습니다. 내가 이것을 할 수있는 유일한 방법은 크레디트 속성을 사용하는 것이다. 그러나 긴 텍스트에서는 비좁아 보인다. 공백을 추가하기 위해 크레딧을 스타일링 할 수있는 방법이 있습니까?하이 차트 바닥 글 간격

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

꼬리말을 컨테이너 아래의 HTML에 삽입하지 않는 이유는 무엇입니까? : o – 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