Print combined charts into 1 page
Print combined charts into 1 page
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.
Re: Print combined charts into 1 page
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
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
Re: Print combined charts into 1 page
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
James