2012-09-21 12 views

Odpowiedz

0

Spróbuj tego kodu. To działa dla mnie:

'labelFormatter':function() { 
     var total = 0, percentage; 
     $.each(this.series.data, function() { 
      total+=this.y; 
     }); 

     percentage=((this.y/total)*100).toFixed(1); 
     return this.name+' '+percentage+'%'; 
    } 
4

To jest zaskakująco łatwe. W sekcji tooltip lub dataLabels zmień format.

FROM: 
    format: '<b>{point.name}</b>: {point.y:.1f} Rs.', 
TO: 
    format: '<b>{point.name}</b>: {point.percentage:.1f} %', 
Powiązane problemy