Newbie question for Jfreechart.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dbritton
Posts: 15
Joined: Fri Jun 06, 2003 12:47 am
Contact:

Newbie question for Jfreechart.

Post by dbritton » Fri Jun 06, 2003 12:50 am

I need to implement barchart reports in a java applicaion.
I'm considering using JFreeChart. The demo graphics look
good. I will also require the printout of any charts created.

I saw a blurb about printing. How will is it supported?

There is no print support in the demos that I can see.

dbritton@web-spun.net

dbritton
Posts: 15
Joined: Fri Jun 06, 2003 12:47 am
Contact:

Newbie Q - should have been "How do I print a chart&quo

Post by dbritton » Fri Jun 06, 2003 9:14 pm

Put the chart in a ChartPanel. The ChartPanel object has a popup menu that will allow printing.

Good Luck
David

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jun 09, 2003 9:34 am

That's the easiest way to print a chart. But since JFreeChart can draw to any Graphics2D, you can also take over the printing process in your own code, and output one or multiple charts to specific areas on a page, mix them with other output, etc. etc.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked