Page 1 of 1

Insert arbitrary text to the rangeAxis

Posted: Mon Nov 09, 2009 8:24 pm
by alancq
I know we can add Annotations to a Plot, for example:

Code: Select all

XYTextAnnotation textAnnotation = new XYTextAnnotation ( "Any Text", x, y);
textAnnotation.setRotationAngle (-Math.PI / 2);
plot.addAnnotation (textAnnotation);
Is there any way to insert arbitrary text to the rangeAxis like this (the orange, blue and green labels)? Image

Re: Insert arbitrary text to the rangeAxis

Posted: Mon Sep 10, 2012 11:14 am
by cobquecura
Hi, any success on this?

Re: Insert arbitrary text to the rangeAxis

Posted: Sun Sep 16, 2012 9:30 am
by darkraiyy
I was also wanting to do this very thing. I have been looking for a few days without success. Any advice from the more senior board members would be really helpful!

Re: Insert arbitrary text to the rangeAxis

Posted: Fri Jan 22, 2016 4:24 pm
by eta
hi,
is it possible with the current version of jfreechart?
i would like add some text/label on the axis at specific value position.