Insert arbitrary text to the rangeAxis

Discussion about JFreeChart related to stockmarket charts.
Locked
alancq
Posts: 1
Joined: Thu Nov 05, 2009 2:39 pm
antibot: No, of course not.

Insert arbitrary text to the rangeAxis

Post by alancq » Mon Nov 09, 2009 8:24 pm

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

cobquecura
Posts: 1
Joined: Mon Sep 10, 2012 11:13 am
antibot: No, of course not.

Re: Insert arbitrary text to the rangeAxis

Post by cobquecura » Mon Sep 10, 2012 11:14 am

Hi, any success on this?

darkraiyy
Posts: 3
Joined: Sat Sep 08, 2012 8:31 am
antibot: No, of course not.

Re: Insert arbitrary text to the rangeAxis

Post by darkraiyy » Sun Sep 16, 2012 9:30 am

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!

eta
Posts: 6
Joined: Wed Jan 13, 2016 5:40 pm
antibot: No, of course not.

Re: Insert arbitrary text to the rangeAxis

Post by eta » Fri Jan 22, 2016 4:24 pm

hi,
is it possible with the current version of jfreechart?
i would like add some text/label on the axis at specific value position.

Locked