Yes, I'll experiment with that, thanks a lot.

W dniu sobota, 24 listopada 2012 04:42:42 UTC+1 użytkownik asgallant 
napisał:
>
> There's no way to specify exactly where the gridlines will fall.  The API 
> tries to set the min and max values of the axis such that all gridlines 
> fall on "nice" values.  In your example, you would probably end up with a 
> range of 220-400, with lines every 20.  You can specify the minValue and 
> maxValue suboptions for the axis in question, and so long as they are 
> outside the bounds of your data, the API will use those values to determine 
> the axis values instead of your data, which can help you pick the values 
> you need to get the interval you want.  So if your data went from 230-400, 
> you could specify 220 as the min and 400 as the max, which would most 
> likely get you the results you want for a 20 unit interval with 10 
> gridlines.  Does that make sense?
>
> On Friday, November 23, 2012 6:48:40 AM UTC-5, Hubert Kubik wrote:
>>
>> Hello everybody,
>> I'm implementing some small application displaying physical properties 
>> (like pressure) of substances depending of given temperature.
>> I would like to put guides at certain intervals - (chosen from set of 1, 
>> 2, 5, 10, 20 ...) , but API gives me only the possibility of specifying 
>> number of guidelines.
>> I'm thinking of implementing an algorithm to select the best number of 
>> guides for a given range. 
>> For example if we have temperature span 230-400 and maximum number of 
>> guidelines = 10 the best interval would be 20 starting at 240. 
>> But maybe you know of any smarter way to do that...
>>
>> Cheers
>> Hubert
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/W2IOoTLJabAJ.
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-visualization-api?hl=en.

Reply via email to