Well, you are plotting 74 with the last number in your thread, not 100 which would be plotted at the top of the graph.
That explanation is kind of clunky, but it's really nice that they are being systematic! Basically you are plotting values from 92 to 104. OK, that means your range is 12. So you want to cut up the range of 1 to 100 into 12 intervals of equal length, right? Well, 100/12 == 8.33333 so just set each data point you have equal to (X-92)*8.33333 and round to the nearest integer. Of course, you could just add chds=92,104 as a parameter and Google charts will do this operation for you automatically. On Wed, Jul 8, 2009 at 8:46 PM, rpheath<[email protected]> wrote: > > I would like my lowest point to be at the bottom of the plot, and my > highest point to be at the top of the plot, with the y-axis reflecting > that. I have values under 100 working fine, but can't seem to get > values over 100 to work right. I followed this thread to get the > values below 100 working: > > http://groups.google.com/group/google-chart-api/browse_thread/thread/7458ab355dfa2d/5bcd432cdfb6fd1f?lnk=gst&q=line+chart+y-axis+scale#5bcd432cdfb6fd1f > > In the above thread, there is a place where it says to adjust the > values for the "new zero" (in that case it's 92). However, they just > so happened to want to keep 100 as their top number. I tried using the > same logic (or reverse logic?) to adjust the numbers for the "new > hundred" but I couldn't get it to work. > > Here's an example chart to help explain what my issue is: > > http://chart.apis.google.com/chart?chf=bg,s,00000000&chm=D,6E8648,0,0,3|B,ABDB6D,0,0,0|o,e4f7cb,0,-1,2&cht=ls&chd=t:28,18,6,4,10,24,12,20,0,12,36,6,14,72&chs=712x150&chxt=x,y&chg=0,20,1,5&chxl=0:||1:|68|75|82|90|97|104 > > I want the top point to be at the 104 mark like it should. If it > helps, here's the actual data that's being plotted, before it gets > scaled: > > [82, 77, 71, 70, 73, 80, 74, 78, 68, 74, 86, 71, 75, 104] > > As you can see, the lowest number in the list is 68, and the graph > reflects that. However, as I mentioned, I cannot get the 104 part to > work properly. > > I've searched and searched through this group, but nobody seems to > have had the exact problem, even though I know I can't be the only > one. Any help is greatly, greatly appreciated. Thanks in advance! > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
