Thank you very much, your reply was very useful. By the way I should have read the documentation more carefully.
I'm proceding in the following way: 1) I retrieve data values to display from a db (even though they are now just random numbers). Obviously I take into account the possibility of having more than one serie of data. 2) I calculate min and max data values (min and max values can be calculated slightly differently as chart type can change). 3) I adjust data scaling and axis range (setting up even the number of steps) refearing to min and max values obtained. 4) I set the grid step size according to the number of axis labels displayed (for both axes if necessary), using the following formula: step size = 100 / (numberOfLabels - 1) So far it seems to work. Anyway I will try to enter more complex data to check if my charts continue to display correctly. Cristian Gabbanini On 19 Mar, 18:13, KeithB <[email protected]> wrote: > Cristian, > > I'm not sure you'll be able to come up with display logic that will cover > all scenarios, but here's how I'd start: > > Use the CHXR parameter to manually specify min/max/step values, keeping in > mind that you'll have to give the API a good max value so that it's > displayed at the end of the axis. Then it's just some math to calculate the > grid step. > > Here's an example:http://goo.gl/YAlH3 > > Hope that gets you started, > Keith -- 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.
