Hyperlink on JFreechart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mann
Posts: 13
Joined: Thu Mar 20, 2008 11:55 am

Hyperlink on JFreechart

Post by mann » Thu Mar 20, 2008 12:09 pm

Hi
I m working on JFreechart .
I want to know
1. whether we put Hyperlink on chart area or not?
because i want to show chart on web page with hyperlink on it.

2. Can we combine Bar Chart and Area Chart together which are using
same Axis.
Please if u hav any solution let me know.
Bcs i m new to JFreechart

regards
mann

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 » Tue Mar 25, 2008 4:29 am

For charts with hyperlinks on a web page, you need to create an HTML image map to go along with the chart image - the ImageMapUtilities class can help you with that.

To overlay chart types in JFreeChart, you create a separate dataset and renderer for each chart type and add them to the same plot. Each dataset can be mapped to the same or different axes.
David Gilbert
JFreeChart Project Leader

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

mann
Posts: 13
Joined: Thu Mar 20, 2008 11:55 am

Post by mann » Tue Mar 25, 2008 10:38 am

Hi,
Thnks for your reply.
will u please provide me some starting helpLine for
Showing hyperLink on Chart on webpage.
please ,Bcs it is very urgent.

regards
mann

deepujain
Posts: 21
Joined: Sat Jun 02, 2007 10:52 am
Location: Bangalore

Post by deepujain » Tue Mar 25, 2008 5:40 pm

Go throug this link the same logic can be applied to get hyperlinks in graph when used with web applications.
http://www.jfree.org/phpBB2/viewtopic.php?t=24175

This should give you a nice starting point.
Thanks
Deepak
Zzzzz....

Locked