How to move to the next page when clicking in the pie chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sailaja
Posts: 7
Joined: Tue May 06, 2008 8:15 am

How to move to the next page when clicking in the pie chart

Post by sailaja » Tue May 06, 2008 8:23 am

Hi...
I have a problem that i have developed a Piechart by using jfreecharts.When i want to click in the Pie sections then it has to move to the Next page.so if someone knows about this please provide the sample code.Help meeee..
Thanks

sreehari.ojili
Posts: 14
Joined: Tue May 06, 2008 5:57 am

Post by sreehari.ojili » Fri May 09, 2008 11:46 am

i think ur problem will solve by using URL generator, In URL generator u need to specify what page it needs to render...

Code: Select all

renderer.setItemURLGenerator(new StandardCategoryURLGenerator("demo.jsp"));

sailaja
Posts: 7
Joined: Tue May 06, 2008 8:15 am

How to create renderer object

Post by sailaja » Tue May 13, 2008 12:36 pm

How to create renderer object i have developed a chart using scriptlet class that is normal java class and i am calling through the JRXML and rendering the chart object here and i m printing that chart thorugh servlet using Jrxmlloader and printmanager classes.so is it possible to write the events for the pie chart in the scriptlet if possible then please anyone post the sourcecode for simple one event so that it could be useful for anyone.

Thanks,
Sailu

Locked