Search found 2 matches
- Tue Mar 13, 2007 6:47 pm
- Forum: JFreeChart
- Topic: Using JFreeChart in to produce 25+ charts in the same scroll
- Replies: 6
- Views: 7185
almost, but the image is blank
I found code on another forum, but the resulting file is blank: JPanel panel = new JPanel(new GridLayout(1, 2)); panel.setSize(800,600); panel.add(new ChartPanel(chart1)); panel.add(new ChartPanel(chart2)); try { saveComponentAsJPEG(panel, "fileName.jpg"); } catch (Exception e) { throw new Error(e);...
- Tue Mar 13, 2007 6:16 pm
- Forum: JFreeChart
- Topic: Using JFreeChart in to produce 25+ charts in the same scroll
- Replies: 6
- Views: 7185
more clues, please
David, I'd lke to do a very similar thing. I see in TimeSeriesDemo11 that you put four charts on one page. How would I export this to a PNG file? Regarding aligning: Suppose I have JFreeChart chart1 and JFreeChart chart2. I want to make a PNG file that has chart1 in the top of the page and chart2 in...