Pie chart issue

32 views
Skip to first unread message

ravi

unread,
Jun 21, 2011, 11:02:01 AM6/21/11
to Google Chart API
Hi,

I am trying to build pie chart. I have 2 values for generating pie
chart. it can go upto max 6 values.
The issue is even though the values chd parameter values are different
the pie chart divides the graph into two halfs.

can anyone share your thoughts.

This is the chart :

chs=580x200
cht=p3
chxt=x
chxs=0,333333,15
chco=9B9B9B,4EA3E5,BFB71E,00FF00,5E5A80,78c7c7
chdlp=b
r
chdl=1690 KWh. $163 total
403 KWh. $54 total
chdls=333333,12
chf=c,ls,90,FFFFFF00,0.24,DDDDDD00,0.01
bg,s,65432100
chl=80.75%25
19.25%25
chd=t:1689,403,0,0,0,0
chma=t:0,0,0,40



Thanks,
Ravi

KeithB

unread,
Jun 21, 2011, 11:14:16 AM6/21/11
to google-c...@googlegroups.com
Ravi,

Check out the Autoscaling section of the documentation @ http://code.google.com/apis/chart/image/docs/data_formats.html#textformatautoscaling

--> add "chds=a"

Cheers,
K

ravi

unread,
Jun 21, 2011, 11:25:22 AM6/21/11
to Google Chart API
Hi Keith,

Thanks... buddy .. it works.


On Jun 21, 10:14 am, KeithB <kbornho...@gmail.com> wrote:
> Ravi,
>
> Check out the Autoscaling section of the documentation @http://code.google.com/apis/chart/image/docs/data_formats.html#textfo...

Doug

unread,
Jun 23, 2011, 10:20:06 PM6/23/11
to Google Chart API
While this works, why is it required? All values are supposed to be
relative to each other aren't they?

from the docs:
Pie and Venn Charts: With pie and Venn charts, all values are relative
to each other, not to the total scale of the chart.
Reply all
Reply to author
Forward
0 new messages