Multiple plots in JScrollPane with fixed X-axis

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

Multiple plots in JScrollPane with fixed X-axis

Postby 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?
Posts: 1
Joined: Wed Mar 22, 2017 3:35 pm

Return to JFreeChart

Who is online

Users browsing this forum: Google [Bot] and 7 guests