With extended encoding the default data range is 0 to 4095, so the data you supply will be scaled to fit that range. When you scale the axis with chxr you are telling the chart to force your data down in the 100 to 200 range of the overall zero to 4095 range. You might want to try using *chxl* instead of *chxr*. Chxl will just change the label for your axis, without you having to renormalize your data to 4095 at all. Orrrr, you could try using 0,4095 for your start/stop values you pass with the chxr parameter, that is the range you want to use for your data to fill up the chart.
http://code.google.com/apis/chart/docs/data_formats.html#data_scaling If you've got the time check out the section on data formats and data scaling. I feel this issue of data not scaling correctly can be solved with this info. Good luck! ~Elijah On Fri, Apr 22, 2011 at 9:57 PM, Peter Fleck <[email protected]> wrote: > I changed 'cht' to 'lc' and the data appeared! Thanks. > > Next I need the data to correlate to the Y-axis. The data points are: > > 127,171,178,119,151,151,170,186,170 > > and the Y-Axis is set from 0 to 200 in increments of 50 ('chxr' => > '0,100,200,50') > > Right now my data is an almost straight line at the bottom of the graph and > doesn't correspond to the Y-Axis at all. I'll be trying to figure this out > tomorrow but any pointers you can give me would be great. > > Thanks again. > > Peter > > -- > 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. > -- 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.
