Dual Axis'

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

Dual Axis'

Post by Klaus Rheinwald » Tue Feb 11, 2003 10:32 am

David,

first of all a big thank you for implementing the dual axis feature! Changing my code from using a CombinedPlot to using a second axis was quite painless, at least when I found the get Secondary...() functions.

Two things I noticed, though:

- The data for the second axis is rendered by the same renderer as the data for the first one. This leads to incorrect calls to the ToolTipGenerator, unless a secondary renderer is installed. Maybe a different secondary renderer could be installed by default?

- The 'Properties' popup menu does not show the properties for the second axis.

Regards,
Klaus

David Gilbert

Re: Dual Axis'

Post by David Gilbert » Tue Feb 11, 2003 10:38 am

Klaus Rheinwald wrote:
> - The data for the second axis is rendered by the same
> renderer as the data for the first one. This leads to
> incorrect calls to the ToolTipGenerator, unless a secondary
> renderer is installed. Maybe a different secondary renderer
> could be installed by default?

It is intentional that if there is no secondary renderer defined, then the primary renderer is used as the default. It sounds like there is a bug in the tooltip generation though. I'll take a look later on today (I've added this to the bug database, id 684473, so I don't forget about it).

> - The 'Properties' popup menu does not show the properties
> for the second axis.

The property editors have been neglected for a while. I plan to redo all the code in the run-up to 1.0.0.

Regards,

Dave Gilbert

Locked