ZoomOut Range Problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
williamt
Posts: 13
Joined: Thu Dec 14, 2006 1:22 pm

ZoomOut Range Problem

Post by williamt » Wed Mar 07, 2007 8:30 pm

Hi,
I'm having problems using the zoom in a xy chart. In fact, I'm using JFC to plot a candlestick graph, and it appears to be working.
The range of my y axis is somewhere between [30000 ~ 40000], but the lower bound of my rangeaxis is showing zero.
I tried to use setLowerBound, it worked, but after I zoom out the chart, the lower bound is set to zero.

How can set some kind of default_lower_bound?
Do you guys know some kind of workaround for it?

Thanks!

ashish_sriv
Posts: 20
Joined: Tue Jan 16, 2007 1:54 pm

Post by ashish_sriv » Wed Mar 07, 2007 8:45 pm

set

((NumberAxis)axis).setAutoRangeIncludesZero(false); betore setting zoomRange.

Thanks,

williamt
Posts: 13
Joined: Thu Dec 14, 2006 1:22 pm

Post by williamt » Wed Mar 07, 2007 9:56 pm

Uhn, I will try that.

But I'm very suspicious about the volume bars the DefaultHighLowDataset or OHLCDataset have.
Maybe, even thought I'm setting drawVolume to false, the range is still considering the data from the barchart to set the range?
Can I remove it? I mean, can I remove the barchart?

Thanks!

Locked