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
  • 808
  • 3
  • 14
  • 26

1 Answers1

1

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

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045