Search found 5 matches

by pho
Wed Jan 17, 2007 1:50 pm
Forum: JFreeChart
Topic: How to stop auto zoom out
Replies: 0
Views: 1754

How to stop auto zoom out

Hii My chart shows a dynamic curve which updates once a minute. My question is when a user zooms in to a portion of the curve, when the curve updates, it zooms out automatically. Is there a function which can stop the curve from zooming out? I've looked at the ChartPanel class and cannot see anythin...
by pho
Sat Jan 13, 2007 12:07 am
Forum: JFreeChart
Topic: JFreeChart in a SplitPane does not resize
Replies: 2
Views: 4803

JFreeChart in a SplitPane does not resize

Hi

I need to place a jfreechart in a JSplitPane. However, When I adjust
the window which contains the JSplitPane, the jfreechart does not resize.

If it's a normal JPanel instead of a JSplitPane, jfreechart resize
properly when the window is resized.

Is this the expected behaviour?

Thanks.

Phil
by pho
Wed Dec 06, 2006 11:15 am
Forum: JFreeChart
Topic: How to set x axis range
Replies: 1
Views: 2562

How to set x axis range

Hi I have a 1 years times series and I would like to let the user to select the time horizon to display 1 month, 3 months, 6 months, and 1 year data. What's the best way to do it? I can't see any code in the demo source code. Also would the displayed curve auto-size to fit the chart panel? Thanks ve...
by pho
Fri Nov 17, 2006 10:34 pm
Forum: JFreeChart
Topic: XYPlot.datasets.size field doesn't update ?
Replies: 2
Views: 2997

Thanks David. You're right. I created a TimeSeriesCollection object and added 2 time series to it, and then added the TimeSeriesCollection object to createTimeSeriesChart(). So there is really 1 dataset. If I have N time series, which way is more efficient for jfreechart: - (1) Create a TimeSeriesCo...
by pho
Thu Nov 16, 2006 6:59 pm
Forum: JFreeChart
Topic: XYPlot.datasets.size field doesn't update ?
Replies: 2
Views: 2997

XYPlot.datasets.size field doesn't update ?

Hi After creating a chart, I dynamically add new time series to it, and I want to use the data by looking at the dataset. It's ok when I add the first series. But when I add the second series it fails. Section of the offending code: - for (int row=0; row < total_rows; row++) { XYPlot plot = (XYPlot)...