The API assumes that the y-axis ranges from 0 to 100 when using text- encoded data. You changed the y-axis min/max values with your CHXR parameter (chxr=0,0,10,2) but you also need to scale your data accordingly. With text-encoded data, the API can do this for you, but you need to specify it with the CHDS parameter. Add "CHDS=0,10" to your URL and things should look better.
Cheers, K On Mar 5, 5:36 pm, Adam Bray <[email protected]> wrote: > I'm trying to use this API to show views on users profiles for my > website. I've made it so that the PHP works out upper and lower limits > in the hope that the chart would then zoom in if the limits are lower > or zoom out if the limits are higher. > > For example, the graph shown > here:http://chart.apis.google.com/chart?chs=700x225&cht=ls&chco=0077CC&chd... > > The one active dot on the graph has a value of 1, now I want that to > be 1/2 way between 0 and 2 on the Y axis but it's not doing it. How do > I accomplish this? > > Regards, > Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
