Print combined charts into 1 page

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

Print combined charts into 1 page

Post by James » Wed Jan 15, 2003 7:15 pm

I have 4 bar charts charts in 1 tabbed panel in Applet. Each chart has different data. I use CategoryDataset and Vertical BarChart. The problem is that I cannot print all 4 in one page. whenever I pointed the mouse to the chart, it will print that chart.

David Gilbert

Re: Print combined charts into 1 page

Post by David Gilbert » Thu Jan 16, 2003 4:36 pm

Hi James,

If you want to print multiple charts on one page, you have to take over control of the printing and determine the layout for your charts in your own code. Since JFreeChart will draw a chart to any rectangular area on a Graphics2D, you can place the charts anywhere you want on the page.

The default printing code just fills one page with one chart.

Regards,

Dave Gilbert

James

Re: Print combined charts into 1 page

Post by James » Mon Feb 17, 2003 2:22 pm

Let me clarify this. I was saying that I want to print 4 charts has 1 chart just like the Combined class. I am trying to print 2 x 2.

James

Locked