Draw in axis region

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mickish
Posts: 29
Joined: Tue Jan 08, 2008 11:15 pm
Location: Venice, Florida

Draw in axis region

Post by mickish » Fri Jan 11, 2008 5:33 pm

I want to put some text in the lower-left corner at the origin of the plot.

Subtitles draw outside this area. XYTitleAnnotation draws inside the chart.

Is there a way to draw in the axis area?

Thanks!

shehriih
Posts: 5
Joined: Wed Jan 09, 2008 9:26 am

Post by shehriih » Sat Jan 12, 2008 6:54 pm

i have done some thing similar ( i am using gantt chart)

i have subclassed TextTitle class and made my own

in the subclass , you can override the draw method to draw whatever you want

then , make an object of that class and pass it to the setTitle method of the jfreechart

another way , you said "draw in the axis area" , you can subclass that Axis class and override its draw method to draw the text you want

and then set the rangeaxis to be an instance of your new class

i hope this will help

Locked