how highlight a single bar in a barchart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
blueland9999
Posts: 5
Joined: Sun Nov 14, 2004 3:23 am

how highlight a single bar in a barchart?

Post by blueland9999 » Sun Nov 14, 2004 3:38 am

Hello everyone,
I am new here.
I have a question, how can i highlight a single bar in a barchart and doubleclicked can change the value of the bar?

Is it possible?

Who can help me ?

Thanks a lot.

Ming

blueland9999
Posts: 5
Joined: Sun Nov 14, 2004 3:23 am

Post by blueland9999 » Sun Nov 14, 2004 10:28 pm

For example, I use 10 series and only one category. but how can I get the mouselistener ,that the mouse in a bar moved?

Thanks.

Ming

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 » Mon Nov 15, 2004 10:18 pm

Use the addChartMouseListener() method in the ChartPanel class.
David Gilbert
JFreeChart Project Leader

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

blueland9999
Posts: 5
Joined: Sun Nov 14, 2004 3:23 am

Post by blueland9999 » Wed Nov 17, 2004 2:21 pm

yes, I think so ,too.
But how can I do it, I try to modify the BarRenderer Class, DrawItem or DrawItemLabel method,failed.
I want to know, in which Event display the BarTooltip.

Thank for your help.



Ming

Locked