A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
bs
- Posts: 15
- Joined: Sun Dec 18, 2005 3:06 pm
- Location: France
-
Contact:
Post
by bs » Mon Jan 09, 2006 7:13 pm
Hi,
JFreeChart puts , when the mouse is with the one period old top, the periode(date beginning - date fine) in a tooltip which is posted when the mouse is on the rectangle which modelise the period.
I want to add some words for this tooltip.
How
and thank you

-
bs
- Posts: 15
- Joined: Sun Dec 18, 2005 3:06 pm
- Location: France
-
Contact:
Post
by bs » Mon Jan 09, 2006 7:21 pm
If you do not see this image, click
Here
-
angel
- Posts: 899
- Joined: Thu Jan 15, 2004 12:07 am
- Location: Germany - Palatinate
Post
by angel » Tue Jan 10, 2006 8:14 am
Something like that:
Code: Select all
renderer.setBaseToolTipGenerator(new IntervalCategoryToolTipGenerator("{3} - {4}", DateFormat.getDateInstance()));
-
bs
- Posts: 15
- Joined: Sun Dec 18, 2005 3:06 pm
- Location: France
-
Contact:
Post
by bs » Tue Jan 10, 2006 12:52 pm
I want for each rectangle a message different.
-
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 Jan 10, 2006 3:13 pm
bs wrote:I want for each rectangle a message different.
You'll need to write a custom tooltip generator.
-
bs
- Posts: 15
- Joined: Sun Dec 18, 2005 3:06 pm
- Location: France
-
Contact:
Post
by bs » Tue Jan 10, 2006 8:01 pm
david.gilbert wrote:
You'll need to write a custom tooltip generator.
how

-
angel
- Posts: 899
- Joined: Thu Jan 15, 2004 12:07 am
- Location: Germany - Palatinate
Post
by angel » Wed Jan 11, 2006 8:26 am