views:

1855

answers:

3

Why the line is starting at 100 on y-axis, Can any body solve my problem.

code:

<img src="http://chart.apis.google.com/chart?
chs=500x200
&amp;chd=t:533,100,423,200|179,50
&amp;cht=lc
&amp;chxt=x,y
&amp;chxl=0:|JAN|FEB|MAR|APR|MAY|JUNE|JULY|AUG|SEP|OCT|NOV|DEC|
1:||20|40|60|80|100
&amp;chco=FF9900,FF0000,0000FF"
alt="Sample chart" />

if i changed the y-axis values the line is coming at 1000!

1:||200|400|600|800|1000

how can i get that starting point at 533 ?

thanks

+1  A: 

All Google charts are represented proportionally to 100. So the highest value will always run along the top of the graph.

As you have specified your axis as 20,40,60,80,100 it now looks as though your top value is 100, but actually, whatever value you have, it will always look like 100 as it will run along the top.

Either remove the axis settings, or adjust your axis values to represent the maximum value in your values. In this case 533.

Jon Winstanley
+2  A: 
Dave Webb
A: 

I wonder whether we can use these charts in Android? I need to draw a pie chart in my app.

Maxood