How to set focus on each section of a pie chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Chaya S
Posts: 1
Joined: Mon Feb 06, 2017 12:40 pm
antibot: No, of course not.

How to set focus on each section of a pie chart

Post by Chaya S » Mon Feb 06, 2017 12:49 pm

Hello,

I want to set the focus on each section of a pie chart using a key event (Eg: On Tab key press). Is it possible to set the focus on each section?
Please let me know if there is any way..
Thanks!!

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: How to set focus on each section of a pie chart

Post by John Matthews » Mon Feb 06, 2017 8:13 pm

You asked a similar question here. For mouse hovering, add a ChartMouseListener to your ChartPanel and invoke setExplodePercent() in chartMouseMoved(). For keypress, invoke setExplodePercent() in your key binding.

Locked