Multiply Axes?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
danhsmile044
Posts: 1
Joined: Mon Jun 18, 2018 9:49 am
antibot: No, of course not.

Multiply Axes?

Post by danhsmile044 » Mon Jun 18, 2018 10:55 am

I have a chart with 2 range axes. I have the datasets mapped properly to the two axes, but when I pan the chart, they move in opposite directions? Is there a way to invert the pan direction while maintain the order of the axis labels? I want negative values on top of both axes, and positive on the bottom; I just need the movements synced.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Multiply Axes?

Post by paradoxoff » Thu Jun 21, 2018 5:49 pm

That could be a bug in how JFreeChart handles the panning. When the mouse is moved up, the axis range is shifted to lower values, which, for an inverted axis, means that the plot is moving down.
I wil have a look at that issue and see whether I can provide a patch.
Which version of JFreeChart are you using?

Locked