hide/disable x axis tick labels?

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

hide/disable x axis tick labels?

Post by Guest » Fri Apr 30, 2004 8:25 am

In the options (under right click properties) there is a hide tick labels, which I want to enable by default in the code. I don't want an axis/labels at the bottom of my TimeSeriesChart, any ideas how to do this?

anjali
Posts: 7
Joined: Thu Sep 11, 2003 9:51 am
Location: India

Post by anjali » Fri Apr 30, 2004 9:23 am

U can implement interface AxisConstants to set DEFAULT_TICK_LABELS_VISIBLE=true.

nikster
Posts: 46
Joined: Wed Nov 19, 2003 4:34 pm

Post by nikster » Fri Apr 30, 2004 9:39 am

try

Axis.setTickLabelsVisible(false)

;)

Guest

Post by Guest » Fri Apr 30, 2004 7:22 pm

it worked! Thank you!

This is what I used:
DateAxis ax = (DateAxis) plot.getDomainAxis();
ax.setTickLabelsVisible(false);

gotti
Posts: 6
Joined: Sun May 02, 2004 2:22 pm

Post by gotti » Sun May 02, 2004 2:27 pm

Somehow i cant find it in the manual so:
I´d like to know if it is also possible to hide every for example second or third label - cause if i´ve got a Bar Chart with 40 Bars there´s not enough space for 40 labels...
What i´d like to have is something like:
1,2,3,4,5,10,15,20,25,26,27,28,29,30

Locked