5 messages in com.googlegroups.google-chart-apiRe: Months in a line chart on x-axis| From | Sent On | Attachments |
|---|---|---|
| Just...@gmail.com | 13 Mar 2008 07:23 | |
| mikeg | 13 Mar 2008 18:55 | |
| Just...@gmail.com | 17 Mar 2008 09:00 | |
| mikeg | 17 Mar 2008 15:44 | |
| Just...@gmail.com | 18 Mar 2008 07:27 |
| Subject: | Re: Months in a line chart on x-axis![]() |
|---|---|
| From: | mikeg (mike...@gmail.com) |
| Date: | 03/17/2008 03:44:09 PM |
| List: | com.googlegroups.google-chart-api |
Ok, I didn't post that link very well and apparently, part of it went missing. Here goes again...
Try reassembling this URL. Changes include:
in chf, 1.0 becomes 0.0909 in chg first 10 becomes 9.1 and in chd, 0,10,20,30,40,50,60,70,80,90,100,110 becomes 0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,10
hope that helps.
http://chart.apis.google.com/chart? cht=lxy&chd=s:hW&chs=500x500&chf=c,ls,0,CCCCCC,0.0909,FFFFFF,0.0909 &chco=cc0000,00aa00,00ff00,00bbcc,bb00bb&chm=s,FF0000,1,1.0,10.0 &chm=o,cc0000,1,0,5|o,cc0000,1,1,5|o,cc0000,1,2,5|o,cc0000,1,3,5| o,cc0000,1,4,5|o,cc0000,1,5,5|o,cc0000,1,6,5|o,cc0000,1,7,5| o,cc0000,1,8,5|o,cc0000,1,9,5|o,cc0000,1,10,5|o,cc0000,1,11,5 &chg=9.1,10&chxt=y,x&chl=Jan|Feb|March|April|May|June|July|Aug| Sept|Oct|Nov|Dec&chdl=Coord Ondate|On Date|Audits|Topline|Toplined &chd=t:0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100| 55,25,26,38,58,65,78,98,15,71,45,37| 0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100| 15,25,36,48,68,62,78,98,15,71,65,17| 0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100| 15,25,86,48,78,66,78,98,55,71,65,37| 0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100| 26,25,86,34,68,67,78,98,15,54,65,17| 0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100| 17,45,36,48,68,62,34,98,15,71,67,17
On Mar 17, 11:01 am, "Just...@gmail.com" <Just...@gmail.com> wrote:
I can't seem to get your post to work?
On Mar 13, 9:56 pm, mikeg <mike...@gmail.com> wrote:
First off, the text encoding only support values from 0 to 100. You are specifying your X positions as 0 to 110. A quick and dirty way to get around this is to divide your range (100) by 11 (the number of intervals on the x axis) to get ~9.1. Now you can encode your x-axis as 0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100 (yeah, it should b 100.1, but it's close enough).
Next you need to adjust your grid. Change the step size from 10 to 9.1.
Then you have to adjust your color bands.The width ranges from 0 to 1. Keeping approximately the same interval, change the width from 0.1 to 0.091. But that doesn't match up well with the grid lines, so i made the width 0.0909. Works better.
Try it out...
http://chart.apis.google.com/chart?cht=lxy&chd=s:hW&chs=500x500&chf=c...o,cc0000,1,2,5|o,cc0000,1,3,5|o,cc0000,1,4,5|o,cc0000,1,5,5|o,cc0000,1,6,5|o,cc0000,1,7,5|o,cc0000,1,8,5|o,cc0000,1,9,5|o,cc0000,1,10,5|o,cc0000,1,11,5&chg=9.1,10&chxt=y,x&chl=Jan|Feb|March|April|may|June|July|Aug|Sept|Oct|Nov|Dec&chdl=Coord%20Ondate|On%20Date|Audits|Topline|Toplined&chd=t:0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100|55,25,26,38,58,65,78,98,15,71,45,37|0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100|15,25,36,48,68,62,78,98,15,71,65,17|0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100|15,25,86,48,78,66,78,98,55,71,65,37|0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100|26,25,86,34,68,67,78,98,15,54,65,17|0,9.1,18.2,27.3,36.4,45.5,54.6,63.7,72.8,81.9,91,100|17,45,36,48,68,62,34,98,15,71,67,17
i'm trying to plot 12 markers but it seems that nov and dec are on the same line, can someone please help me figure out why <img src="http://chart.apis.google.com/chart? cht=lxy&chd=s:hW&chs=500x500&chf=c,ls,0,CCCCCC,0.1,FFFFFF, 0.1&chco=cc0000,00aa00,00ff00,00bbcc,bb00bb&chm=s,FF0000,1,1.0,10.0&chm=o,cc0000,1,0,5| o,cc0000,1,1,5|o,cc0000,1,2,5|o,cc0000,1,3,5|o,cc0000,1,4,5| o,cc0000,1,5,5|o,cc0000,1,6,5|o,cc0000,1,7,5|o,cc0000,1,8,5| o,cc0000,1,9,5|o,cc0000,1,10,5| o,cc0000,1,11,5&chg=10,10&chxt=y,x&chl=Jan|Feb|March|April|may|June| July|Aug|Sept|Oct|Nov|Dec&chdl=Coord Ondate|On Date|Audits|Topline| Toplined&chd=t:0,10,20,30,40,50,60,70,80,90,100,110| 55,25,26,38,58,65,78,98,15,71,45,37| 0,10,20,30,40,50,60,70,80,90,100,110| 15,25,36,48,68,62,78,98,15,71,65,17| 0,10,20,30,40,50,60,70,80,90,100,110| 15,25,86,48,78,66,78,98,55,71,65,37| 0,10,20,30,40,50,60,70,80,90,100,110| 26,25,86,34,68,67,78,98,15,54,65,17| 0,10,20,30,40,50,60,70,80,90,100,110| 17,45,36,48,68,62,34,98,15,71,67,17"/>- Hide quoted text -




