If you add &chds=a to your original URL it will correctly scale the Pie chart.
http://chart.apis.google.com/chart?chf=ffff00&cht=p3&chs=700x300&chd=t:33522.5,31680,24922.2,1643.4&chco=0000ff,ff0000,228b22,c71585&chds=a&chl=Type1%20(36.53%)|Type%202%20(34.52%)|Type%203%20(27.16%)|Type%204%20(1.79%) Documentation here: https://developers.google.com/chart/image/docs/data_formats#textformatautoscaling Thomas Rybka | Software Engineer | [email protected] | GViz On Fri, Feb 15, 2013 at 6:28 AM, <[email protected]> wrote: > > On Friday, 15 February 2013 10:13:55 UTC, [email protected] wrote: > >> Hi >> >> I am using the following code >> >> >> http://chart.apis.google.com/**chart?chf=ffff00&cht=p3&chs=** >> 700x300&chd=t:33522.5,31680,**24922.2,1643.4&chco=0000ff,** >> ff0000,228b22,c71585&chl=Type1<http://chart.apis.google.com/chart?chf=ffff00&cht=p3&chs=700x300&chd=t:33522.5,31680,24922.2,1643.4&chco=0000ff,ff0000,228b22,c71585&chl=Type1>(36.53%)|Type >> 2 (34.52%)|Type 3 (27.16%)|Type 4 (1.79%) >> >> >> to generate a pie chart. If you copy and paste this into a browser you >> get the chart but clearly the pie slices are not correctly shown. i.e. they >> all look around 25% when the data is 33522/31680 oor around 35% each and >> then for type 4 data=1643.4 or approx 2% then pie slice is the same size >> and the rest. >> >> What is wrong with my code? >> >> Thanks >> >> Nick >> >> Hmmm....seem to have "accidently" solved this by dividing all the numbers >> by 1000 - then it works. So have no idea why the largish number are not >> handled by the chart routine - seems odd to me. >> >> >> **<http://chart.apis.google.com/chart?chf=ffff00&cht=p3&chs=700x300&chd=t:33.5225,31.680,24.9222,16.434&chco=0000ff,ff0000,228b22,c71585&chl=Type1> >> *http://chart.apis.google.com/chart?chf=ffff00&cht=p3&chs= >> 700x300&chd=t:335.225,316.80,249.222,16.434&chco=0000ff, >> ff0000,228b22,c71585&chl=Type1* >> (36.53%)|Type2(34.52%)|Type3(27.16%)|Type4(1.79%) >> >> >> >> >> > -- > 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 > http://groups.google.com/group/google-visualization-api?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
