If you don't define data scaling Goggle Charts assumes that t encoded
values are between 0 and 100. Everything larger then 100 is coded to
the value 100. So in the first example it creates a chart as it were
with two values of 100.
You have the choice of either multiplying all of your values with a
constant such that all new values are <= 100 or add data scaling e.g.
add &chds=0,1000 (the first value has to be 0, the second one large
enough to handle all of your data)
On Apr 3, 1:03 pm, JLB <jlb...@gmail.com> wrote:
Hi again all:
A question. If the numbers provided to Google Chart for generating a
pie chart do not add up to 100, should not the pie chart still be make-
able? Should not the total of all 'slices' always be taken as 'one
hundred percent' of the pie, and the numbers scaled down internally
accordingly?
If you pass it the numbers 100 and 900 instead of 10 and 90, you get:
http://chart.apis.google.com/chart?cht=p&chs=145x145&chd=t:900,100(a
pie with two equal 50% slices)
instead of:
http://chart.apis.google.com/chart?cht=p&chs=145x145&chd=t:90,10(a
pie with one 90% slice and one 10% s lice)
The two charts should be identical, should they not?