If not use ChartFactory to create JFreeChart object, just use JFreeChart constructor, is there any way to enable tooltip?
Thanks.
How to enable tooltip if not use ChartFactory?
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Re: How to enable tooltip if not use ChartFactory?
Yes. You will need to get the Plot object from the JFreeChart object, get the renderer(s) from the plot, and set the appropriate tool-tip generator. You can use the javadoc starting from JFreeChart and work your way though.rspan wrote:If not use ChartFactory to create JFreeChart object, just use JFreeChart constructor, is there any way to enable tooltip?
Thanks.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA