More than 1 vertical axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Hans Stoessel

More than 1 vertical axis

Post by Hans Stoessel » Thu Dec 19, 2002 4:27 pm

Hi

I have to create a chart (line, bar, combination) with more than 1 vertical axis. I mean, I use a horizontal axis (date, time) who is shared from all values. The vertical axis isn't shared! One of the dataset uses one vertical axis, the other uses the other one. It should be possible that both axis on the left side of the chart or one is on the left and the other on the right side.

How can I do that?
Is that possible with JFreeChart?

Thanks for help

Regard

Hans

David Gilbert

Re: More than 1 vertical axis

Post by David Gilbert » Thu Dec 19, 2002 4:36 pm

Hi Hans,

This isn't possible in 0.9.4 - however, there is code in CVS now that allows dual axes (one on each side of the chart), so it will be possible in 0.9.5 when it is released. You can check out the CVS code on the JFreeChart project page at SourceForge. If you do grab a copy of the CVS code, the PriceVolumeDemo.java file has been updated to make use of the new feature.

Regards,

Dave Gilbert

Hans Stoessel

Re: More than 1 vertical axis

Post by Hans Stoessel » Thu Dec 19, 2002 4:58 pm

Hi

Is a release date for the new version available? For me its an important feature, so I hope it would be soon.

Thanks

Regards

Hans

David Gilbert

Re: More than 1 vertical axis

Post by David Gilbert » Mon Dec 23, 2002 10:41 am

I'm aiming for 0.9.5 to be released towards the end of January, but there are a lot of uncontrollable factors so I can never guarantee it...

Regards,

DG

Hans Stoessel

Re: More than 1 vertical axis

Post by Hans Stoessel » Mon Dec 23, 2002 4:14 pm

Hi David

I know that about the uncontrollabe factors, there are so many things who affects a project.

Unfortunately, the end of January is probably too late for me. We have a deadline for our project at the end of March and I have to implement the charts as soon as possible.

Maybe its possible to have a beta version of the new release?

Thanks for your efforts and merry christmas.

Regards

Hans

Bill Zahavi

Re: More than 1 vertical axis

Post by Bill Zahavi » Mon Dec 23, 2002 10:34 pm

You can normalize the values of both lines to a single scale then show the scaling factor for each in the legends. This will get you to started before the feature is in the product.

David Gilbert

Re: More than 1 vertical axis

Post by David Gilbert » Mon Dec 23, 2002 10:46 pm

Hi Hans,

The latest JFreeChart code (including dual axes) is publically available via CVS on the JFreeChart project page at SourceForge:

http://sourceforge.net/projects/jfreechart

Regards,

Dave Gilbert

Locked