Add tooltips to annotations
-
- Posts: 1
- Joined: Wed Jul 26, 2017 6:38 pm
- antibot: No, of course not.
Add tooltips to annotations
How would I add tooltips to a TextAnnotation on a JFreeChart barchart?
Specifically, I want to add a tooltip to a CategoryTextAnnotation.
To prevent a long annotation from taking up too much space on the graph, I am limiting the amount of characters that can be shown. However, I want to be able to see the full annotation in a tooltip by hovering over the shortened annotation text. As in the example picture, I want to hover my cursor over "long piece of text..." and have a tooltip show up.
Thanks in advance.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Add tooltips to annotations
Cross-posted here.