zeke56 wrote:It seems quite bizarre that autoranging to one's data by default always includes 0.
If you don't want that behaviour, just call setAutoRangeIncludesZero(false).
zeke56 wrote:Setting it to NOT include 0 using the method you site seems wrong too, altho I've seen a couple of references to doing what you suggest.
The cited method is fine, although it isn't necessary to completely replace the existing axis (you could just change the flag on the existing axis).
zeke56 wrote:For example what happens if new data you're plotting now goes thru 0??
Then the axis range will include zero regardless of the value of the 'autoRangeIncludesZero' flag (the flag is used to force zero to be included when it wouldn't otherwise be included).
zeke56 wrote:Do you have to reset this "Auto" range each time your data changes?!
No.
zeke56 wrote:Moreover, this setAutoRangeIncludesZero method doesn't even seem to work if you generate your chart by the ChartFactory (e.g. chart = ChartFactory.createXYLineChart...) since it seems to create a ValueAxis that doesn't contain this method, and doesn't seem castable to a NumberAxis.
You used the word 'seem' three times here, and each time it suggests that you are making guesses about how things work rather than actually trying them out to see how they do work. In fact, createXYLineChart() creates a chart with x and y axes that are instances of NumberAxis (which is a subclass of ValueAxis), which you could see just by looking at the source code for that method.
zeke56 wrote:I hope I'm just not getting something simple here or I'm in for a wild ride trying to use this package if the rest of it contains similar twisted logic.
I think you are not getting something simple and you are in for a wild ride.