Hello, I had a similar problem and solved it by scaling the data, I had to
add the chp parameter, I used a scale of 0,100000 to be sure that my data
would't be greater than the scale (100000). Here I paste the explanation
that keithb gave me:

*"Daniela - Regarding your 55% issue, it sounds like you might be using
raw data (200, 600, 200) instead of values that add up to 100 (20, 60,
20).*

*For example, here's a chart with three slices, 20%, 60% and 20%
specified using 20, 60 and 20:
**http://tinyurl.com/9fmsjj*<http://tinyurl.com/9fmsjj>

*Here's a chart using data that doesn't add up to 100 (200, 600, 200) -
you'll see that the chart is NOT correct:
**http://tinyurl.com/92qvln*<http://tinyurl.com/92qvln>

*To fix this, you need to tell the API to scale your data (all the data
values should be converted to percentages using the total value 1,000
[200+600+200]): **http://tinyurl.com/6t6n5b* <http://tinyurl.com/6t6n5b>*"*

Hope it works for you.
Daniela :)


2009/1/13, keithb <[email protected]>:
>
>
> Be default, all charts assume the data ranges from 0 to 100. Adding
> "chds=0,1876" will tell the API that your data ranges from 0 to 1876
> (the sum of all your data points).
>
> Cheers,
> K
>
> On Jan 13, 11:58 am, Wei <[email protected]> wrote:
> > http://chart.apis.google.com/chart?cht=p&chd=t:1206,201,8,250,196,15&;...
> >
> > notice that the first value is 1206....it should be taking up most of
> > the pie chart...but when you try it, it's only about a quarter of the
> > pie chart...
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to