Multiple plots in JScrollPane with fixed X-axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
scott.smith
Posts: 1
Joined: Wed Mar 22, 2017 3:35 pm
antibot: No, of course not.

Multiple plots in JScrollPane with fixed X-axis

Post by scott.smith » Wed Mar 22, 2017 3:46 pm

We are using a JFreeChart with multiple subplots that have the same x-axis. We want to display the plots in in a JScrollPane, and display the x-axis in a separate JPanel beneath the scroll pane so that it remains visible as the user scrolls through the plots. We've tried several approaches with limited success, the obvious difficulty being the need to ensure that the axis is correctly sized and aligned to the plot data area.
I've searched around, and found several posts that discuss solutions for horizontal scrolling through plots, but none that deal with vertical scrolling.
Has anyone tried to do this before, and do you have any solutions?

Post Reply