Hello everybody,
For beginning I specify to you that I am French so sorry for my English.
I've a problem with a LineChart graph who is create dynamically. This graph contain mouse wheel Zoom.
The x-axis contains date values, and the y-axis contains numeric values.
And I want to disable negatives values on the y-axis when I zoom. I don't want that when I zoom out, my graph drops below zero at the y-axis
I hope I was clear.
Thank you.
disable negatives values on lineChart with zoom
Re: disable negatives values on lineChart with zoom
Hey, did you fix this?
Re: disable negatives values on lineChart with zoom
Hello,
No I didn't fix this problem and I didn't have any answer!
No I didn't fix this problem and I didn't have any answer!
Re: disable negatives values on lineChart with zoom
As I wrote in another post, you can try to override zoomOutBoth method from ChartPanel. That's work for me.
Re: disable negatives values on lineChart with zoom
If you are going to show only positive Y-values why not use the NumberAxis method
for your Y-axis? This way the zoom out will not slip into negative range.
Code: Select all
setRangeType(RangeType.POSITIVE)
-
- Posts: 31
- Joined: Thu May 27, 2010 4:23 pm
- antibot: No, of course not.
Re: disable negatives values on lineChart with zoom
setRangeType solution does not seem to work once the user starts zooming out - plot will display area below zero.
I've posted another tip into: viewtopic.php?f=3&t=109509#p167219
I've posted another tip into: viewtopic.php?f=3&t=109509#p167219