HI ricardo,
You may format a number by using a suitable format string. For example "{value|,}".
The exact API to call to apply the format string depends on your chart type and which labels you would like to format. I am not too sure what you mean by "circle graph lines" or "values in the legends". Would you mind to clarify or attach an example to help me understand what is "circle graph lines" and "values in the legends"?
As an example, suppose you would like to change the sector label in a pie chart (like in the "Exploded Pie Chart" sample code). In the original sample code, the format string is (in C#/Java):
c.setLabelFormat("<*block,halign=center,width=110*>{label}<*br*><*font=arial.ttf,size=8*>US$ {value}M ({percent}%)<*/*>");
You can change the {value} above to {value|,}.
Another method is to use BaseChart.setNumberFormat to change the default thousand separator. For example:
c.setNumberFormat(',', '.', '-');
Regards
Peter Kwan |