3D bar chart web application example!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Kamelo
Posts: 6
Joined: Fri Dec 01, 2006 9:47 am

3D bar chart web application example!

Post by Kamelo » Mon Dec 04, 2006 12:31 pm

Hi there,
I am new to JFreeChart, and I would like to know if there is an example showing how to generate a 3D barchart in a web application with each bar of the chart haing a hyperlink to another jsp page that would display some aother information.

Any help would be appreciated.

Thanks in adcance.

ps: I ahve downloaded the developers guide, but could not find what I am looking for.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Mon Dec 04, 2006 12:53 pm

Take a look at the Chapter 19 (Servlets). It's a pitty that this chapter is the worst one of the whole guide.

To make a drill-down in html-generated sites and images, you have to use the image-maps.

Kamelo
Posts: 6
Joined: Fri Dec 01, 2006 9:47 am

Barchart hyperlink!

Post by Kamelo » Mon Dec 04, 2006 2:58 pm

Thanks Angel,
I had to look at the JFreeChart servlet/JSP examples to try to understand how this should work, and I managed to get the hyperlink to work.

But there is always a "BUT", is there a way to open the linked page in a new internet browser window?

Any suggestion.

Thanks again.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Tue Dec 05, 2006 8:21 am

You have to generate an <area> like that:

Code: Select all

<area shape="rect" coords="1,1,249,49" onclick="YourFunction()" alt="Tooltip">
No href but an onclick-event handling. There you could put every Javascript code you want.

Locked