Adding background color and arrow to Text

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nn14
Posts: 4
Joined: Wed Aug 06, 2014 4:02 pm
antibot: No, of course not.

Adding background color and arrow to Text

Post by nn14 » Wed Aug 06, 2014 4:21 pm

Hello,

For a bar chart, I am trying to achieve something similar to what is shown in the screenshot below (Green box with arrow pointing downwards). I was able to add the custom text (You are here) using CategoryTextAnnotation class, but could find a way to add a green background color to it.

Also wanted to know if there is way I can add the arrow too. Would really appreciate if anyone can give any pointers in achieving the greenbox with arrow. Thanks in advance!

Image

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

Re: Adding background color and arrow to Text

Post by John Matthews » Thu Aug 07, 2014 9:11 pm

Cross-posted here.

Locked