If I want to do this but, with amcharts, how do I do it?
El miércoles, 21 de mayo de 2014, 7:01:49 (UTC-5), Mahmoud Said escribió:
>
> Did u reach Any solution or workaround?. i'm stuck with the same problem
> here, I need to display 2 digits after the the decimal point in the
> percentage. apparently the use of fractionDigits does not help
>
>
>
> function drawChart(data) {
> var data = google.visualization.arrayToDataTable([
> ['choice', 'sum'],
> ['option1', data.total_val1],
> ['option2', data.total_val2]
> ]);
>
> var options = {
> title: data.title,
> is3D: true,
> colors:['#CB5758','#4F8DD6'],
> width:600,
> height:400,
> fontSize: 18,
> chartArea: {width: '80%'}
> };
>
> var formatter = new
> google.visualization.NumberFormat({pattern:'###,###', fractionDigits: 2} );
> formatter.format(data, 1);
>
> var chart = new
> google.visualization.PieChart(document.getElementById('chart_div'));
> chart.draw(data, options);
> }
>
>
>
>
> On Thursday, December 13, 2012 8:41:12 PM UTC+2, Kwasi wrote:
>>
>> Is it possible to format the percentage in the pie chart to 2 decimal
>> places instead of one?
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/5d6fa45f-99bb-4518-a400-ccff88378fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.