1

I have overridden the chartMouseClicked () method to capture the ChartMouseEvent for my barChart. I want to get the dataset when the mouse is clicked on one of the bars. However the event should not respond when clicked anywhere else on the chartpanel. How can I filter this.

user1639485
  • 788
  • 3
  • 13
  • 23

1 Answers1

1

You'll need to examine the ChartEntity returned by ChartMouseEvent#getEntity(), as shown here.

Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974