Why freeChart can't amplify?

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

Why freeChart can't amplify?

Post by Daisy » Thu Dec 12, 2002 4:22 am

I used a freeChart in the HTML Page,But the Chart can't amplify.
in Jbuilder7 ,too.
I used right clicking Mouse,it appeard a menu showing zoom in and zoom out,but it just zommed in the chart,it can't amplify whole chart.

How to amplify the whole chart?




Regards.

David Gilbert

Re: Why freeChart can't amplify?

Post by David Gilbert » Fri Dec 13, 2002 1:00 am

You can make use of the fact that JFreeChart draws to a Graphics2D object. You can apply a transformation to the drawing process to make the final output bigger or smaller than the logical drawing size. The ChartPanel class uses this technique to shrink charts into small spaces. Take a look through the source code for ideas...

Regards,

DG

Locked