There are two things wrong - first because one of your datasets has
values over 100 and text data automatically assumes 0 thru 100 you
will need to specify your own scatling using

&chds=0,120,0,20

Then your chxr parameters are incorrect and should read

&chxr=0,0,120|1,0,20 which, from left to right are

0 - this refers to the X axis index since your &chxr=x,y
0 - start this axis at 0
120 - end this axis at 12

after the |

1 - this now refers to the Y axis
0 - start this axis at 0
20 - end this axis at 20

Now there is an optional parameter called interval that you could add
to each of these if you'd prefer to specify your own interval rather
than allow Gchart to dream up its own.

Look at these two sections of the API documentation

http://code.google.com/apis/chart/formats.html#data_scaling
http://code.google.com/apis/chart/labels.html#axis_range

On Jul 18, 8:37 pm, bobak <[email protected]> wrote:
> I am sure this task is easy and i know there is documentation on how
> to do it on the website but i struggled to follow it. I would like to
> know how to do scaling on a line chart.
>
> I am doing some charts for a school biology project, all of them are
> line charts but with some variations.
>
> here is a chart code
>
> http://chart.apis.google.com/chart?chtt=Chart%20Name
> &chts=000000,12
> &chs=700x400
> &chxt=x,y
> &chxr=0,100,200|%26%238232%3B1,0,10,20
> &cht=lxy
> &chd=t:
> 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120|
> 0,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
> &chdl=Data&chco=0000ff
>
> my issues here are that that I have 120 data points, but only 100 are
> showing. so i would like to scale to x axis to show 0 - 200. an the y
> axis is far to big, I only need say 0-20.
>
> thanks in advance
>
> Bobak
>
> here is the 
> URL:http://chart.apis.google.com/chart?chtt=Chart%20Name&chts=000000,12&c...%26%238232%3B1,0,10,20&cht=lxy&chd=t:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120|0,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10&chdl=Data&chco=0000ff
--~--~---------~--~----~------------~-------~--~----~
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