Search code examples
javajfreechart

jfreechart ploting multiple series on different chart and combined into one jpg file


I am using JFreeChart to plot three series of data (XYSeries) using a linechart. I would like to plot each serie into it's own chart and combined the three chart write it out as a single jpg file. I just found out I can use CombinedDomainXYPlot for this.

http://www.java2s.com/Code/Java/Chart/JFreeChartCombinedXYPlotDemo3.htm


Solution

  • I found this completed sample code to generate combined chart using jfreechart. Combined Chart

    You can find the completed sample code from this link : http://www.java2s.com/Code/Java/Chart/JFreeChartCombinedXYPlotDemo1.htm