Insert arbitrary text to the rangeAxis

Discussion about JFreeChart related to stockmarket charts.

Insert arbitrary text to the rangeAxis

Postby 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
alancq
 
Posts: 1
Joined: Thu Nov 05, 2009 2:39 pm

Re: Insert arbitrary text to the rangeAxis

Postby cobquecura » Mon Sep 10, 2012 11:14 am

Hi, any success on this?
cobquecura
 
Posts: 1
Joined: Mon Sep 10, 2012 11:13 am

Re: Insert arbitrary text to the rangeAxis

Postby 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!
darkraiyy
 
Posts: 3
Joined: Sat Sep 08, 2012 8:31 am

Re: Insert arbitrary text to the rangeAxis

Postby 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.
eta
 
Posts: 6
Joined: Wed Jan 13, 2016 5:40 pm


Return to JFreeChart - Stockmarket

Who is online

Users browsing this forum: No registered users and 1 guest