Floating Bar/Gantt with multiple images / icons on top

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
javapda
Posts: 7
Joined: Tue Feb 08, 2005 5:07 pm

Floating Bar/Gantt with multiple images / icons on top

Post by javapda » Mon Sep 05, 2005 8:04 pm

I would like to create a chart where each row is represented by a horizontal bar. And on the bar there are some decorations (Icons/Letters/Shapes).

The tooltips and generated Image Map need to present information for both the background bar and the individual decorations.

Below is a mock-up of the chart. It has as input a time period (range/interval) and a number of discrete dates. Each discrete date is presented as a decoration.

[img=http://img303.imageshack.us/img303/335/ ... art7yx.jpg]

I have been able to create a subclass of GanttRenderer to produce the bar and a single icon/decoration but the output information (tooltip and url for image map) is general for the entire bar.

Thanks in advance.

javapda
Posts: 7
Joined: Tue Feb 08, 2005 5:07 pm

The Image back

Post by javapda » Mon Sep 05, 2005 8:09 pm

Here is the image (sorry for the confusion)

Image

pmlb
Posts: 31
Joined: Thu Aug 25, 2005 5:18 pm
Location: France

Post by pmlb » Tue Sep 06, 2005 10:49 am

I had the same problem (with JFreeChart 1.0.0-pre2). To solve this I created a subclass of IntervalCategoryToolTipGenerator and modified the drawTasks method in GanttRenderer class.

I have posted a feature request with the code :
http://sourceforge.net/tracker/index.ph ... tid=365494
Pierre-Marie

javapda
Posts: 7
Joined: Tue Feb 08, 2005 5:07 pm

Pierre's Contribution

Post by javapda » Wed Sep 07, 2005 4:58 pm

pmlb wrote:I had the same problem (with JFreeChart 1.0.0-pre2). To solve this I created a subclass of IntervalCategoryToolTipGenerator and modified the drawTasks method in GanttRenderer class.

I have posted a feature request with the code :
http://sourceforge.net/tracker/index.ph ... tid=365494
Thanks Pierre...great starting point. :P

Locked