sarthak <[email protected]> wrote on 12/02/2009 01:10:09 PM: > sarthak <[email protected]> > 12/02/2009 01:10 PM > Hi, > I am having a 3d pie chart with a legend on right hand side. I > want to display the percentage of each pie either on the pie or by > the side of the pie. Is it possible to do via google charts api? if > yes how ? > > Thanks in advance > regards > Sarthak
In the documentation: http://code.google.com/apis/chart/labels.html#pie_labels Using the chl parameter, put the actual percentage values (with the % sign) instead of their examples with the shortened month names. So, instead of their url: http://chart.apis.google.com/chart?cht=p3&chs=220x100&chd=s:Hellob&chl=May|Jun|Jul|Aug|Sep|Oct , Yours could be: http://chart.apis.google.com/chart?cht=p3&chs=220x100&chd=s:Hellob&chl=20%|30%|10%|5%|1%|10% Be sure to put your percentage values in the right order. The do have to be computed by you beforehand. You may need to encode the percent symbols. -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-chart-api?hl=en.
