stackedbar

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Massimiliano

stackedbar

Post by Massimiliano » Wed Aug 21, 2002 4:44 pm

How is possible to capture a click on an element of a StackedVerticalBarChart in order to have information about the element on which was clicked???

Many thanks
Massimiliano

David Gilbert

Re: stackedbar

Post by David Gilbert » Thu Aug 22, 2002 10:49 am

Yes, take a look at MouseListenerDemo2.java in the com.jrefinery.chart.demo package. It's for an ordinary bar chart, but if you change:

createVerticalBarChart(...)

to:

createStackedVerticalBarChart(...)

...the demo still works and should give you what you want.

Regards,

DG.

Locked