JFreeChart and Wicket : width and height please

2009-04-03 Thread Ista Pouss
Hi,

I'm beguining to use JFreeChart. My tutorial is "JFreeChart and wicket
example" (http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).

That's work fine, except two things.

First, I think modestly there is a very little error : the tutorial
says "JFreeChart chart = (JFreeChart)getModelObject();", but it's work
better with "JFreeChart chart = (JFreeChart) getDefaultModelObject();"
for me.

Second (the question), how it is possible to set the width and height
in the html img of the graph ?

The generated html is ,
and I should prefer 

Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: JFreeChart and Wicket : width and height please

2009-04-03 Thread James Carman
On Fri, Apr 3, 2009 at 6:04 AM, Ista Pouss  wrote:
> Second (the question), how it is possible to set the width and height
> in the html img of the graph ?

I implemented something simple for JFreeChart in an Advanced Wicket
presentation I did:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java

It just allows you to show the chart as an image and it allows you to
specify the width/height.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org