Is it possible to create labels for intervals on X-axis?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
alexpgh
Posts: 10
Joined: Tue Oct 17, 2006 3:17 pm

Is it possible to create labels for intervals on X-axis?

Post by alexpgh » Tue Oct 17, 2006 6:10 pm

Is it possible to create labels for intervals on X-axis?

For example my X-axis contains these values:

0-----1------2------3-------4------5

I would like to display let's say "Column1" above (or instead) "0-------1", "Column2" above (or instead) "1-------2" etc. on X axis.

Is something similar to this possible?

alexpgh
Posts: 10
Joined: Tue Oct 17, 2006 3:17 pm

Post by alexpgh » Tue Oct 17, 2006 7:10 pm

Ok, after some searching, I realized I can use SymbolAxis to accomplish this.

But, another question I have is how can I center tick labels in the middle of the interval?

alexpgh
Posts: 10
Joined: Tue Oct 17, 2006 3:17 pm

Post by alexpgh » Tue Oct 17, 2006 7:54 pm

I found this (posted by David Gilbert) in one of the previous posts, but I don't see this attribute in documentation? Any ideas? Anyone, please?

"In the current release, the tick marks are always drawn at the start of each time period. In the next release (0.9.7), a new attribute 'tickMarksAtStartOfUnit' will control whether the marks appear at the start or the middle of the unit. "

Locked