Possible to label vertical number axis 'value ticks'?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Fredrik Herbertsson

Possible to label vertical number axis 'value ticks'?

Post by Fredrik Herbertsson » Fri Mar 14, 2003 11:05 pm

Hi,

Does anybody know how to add a label before or after a value on a number axis. Further, is it possible to have the background divided into regions of different color?
Something like:

^
|
+-100---------------------------+ Excellent
|
+--50---------------------------+ Good
|
+---0---------------------------+ Really lousy

In real life the tick values are to the left of the axis.

Hope you get the idea!

Regards

/Fredrik Herbertsson

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Mar 17, 2003 9:37 am

If you look at HorizontalBarChartDemo2 you will see that it adds a band to the range axis that you can add labelled ranges to. It only works for the HorizontalNumberAxis, and there are one or two things that need smoothing out, but you could implement something similar for the VerticalNumberAxis.

Regards,

Dave Gilbert

Locked