Search found 8 matches

by erikvanoosten
Tue Sep 13, 2005 2:10 pm
Forum: JFreeChart
Topic: 2 axis on XYLineChart
Replies: 7
Views: 6037

Your first choice is to either make a category or an XY chart. As a rule of thumb: select a category chart when you have groups of data on the domain axis and select an XY chart when your domain axis represents some continuous domain. For the category chart you can call ChartFactory.createLineChart(...
by erikvanoosten
Tue Sep 13, 2005 12:00 pm
Forum: JFreeChart
Topic: 2 axis on XYLineChart
Replies: 7
Views: 6037

Yes.

Or, you can create a category chart. Do you have the manual? It will make your life a lot easier.
by erikvanoosten
Tue Sep 13, 2005 11:43 am
Forum: JFreeChart
Topic: Candles overlap in the candlestickchart
Replies: 3
Views: 3997

The following will make a more suitable default for the auto-width-method:

Code: Select all

        candlestickRenderer.setAutoWidthMethod(CandlestickRenderer.WIDTHMETHOD_SMALLEST);
by erikvanoosten
Tue Sep 13, 2005 11:31 am
Forum: JFreeChart
Topic: 2 axis on XYLineChart
Replies: 7
Views: 6037

Indeed, you probably have an XYPlot.
by erikvanoosten
Mon Sep 12, 2005 11:35 am
Forum: JFreeChart
Topic: How to get x,y for XYPointerAnnotation in simple line chart?
Replies: 2
Views: 3153

How to get x,y for XYPointerAnnotation in simple line chart?

Of course, x and y are not absolute, but very much exactly the domain and range values. Problem solved!
by erikvanoosten
Mon Sep 12, 2005 11:01 am
Forum: JFreeChart
Topic: How to get x,y for XYPointerAnnotation in simple line chart?
Replies: 2
Views: 3153

How to get x,y for XYPointerAnnotation in simple line chart?

I am trying to add an XYPointerAnnotation to a combined line chart. The XYPointerAnnotation constructor requires an X and Y value which I think are absolute to the complete chart area.

How can I calculate the X and Y value from a given domain and range value?

Regards,
Erik.
by erikvanoosten
Tue Aug 30, 2005 10:53 am
Forum: JFreeChart
Topic: Help: Candlestick - 2 dataseries in 1 dataset. Can it be?
Replies: 1
Views: 4090

use org.jfree.data.general.CombinedDataset

In JFreeChart 1.0 RC you can use org.jfree.data.general.CombinedDataset. Perhaps that works in your version as well.
by erikvanoosten
Tue Aug 30, 2005 10:48 am
Forum: JFreeChart
Topic: PNG-Encoder Performance
Replies: 26
Views: 65953

What is the status?

Hi, I am using Java 5 but I see the same performance problems for large PNG images. (JFreeChart is using ImageIO because ImageEncoderFactory.newInstance("png").toString() returns "org.jfree.chart.encoders.SunPNGEncoderAdapter@64dc11".) After reading the thread I am not exactly sure what to do. Shoul...