2016-12-14 6 views

답변

2
handler: function(){ 
      var chart=this.next(); 
      chart.setSprites({ 
       type: 'text', 
       reference: 'sprites', 
       text: 'Second text ', 
       font: '13px Helvetica bold', 
       width: 100, 
       height: 30, 
       x: 50, // the sprite x position 
       y: 17 // the sprite y position 
      }); 
      chart.redraw(); 
     } 

here is your forked working fiddle

차트가 캔버스에 의해 이루어집니다, 당신은 특정 "조각을 얻을 수 없다 차트 "를 수정하고 수정하십시오. 그러면 차트를 새 텍스트로 다시 그리기 만하면됩니다.

+0

감사합니다. Mr.Bruno. 귀하의 솔루션으로 제 문제가 해결되었습니다. – josei