How to hide tick lines on axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vineet.goel86
Posts: 2
Joined: Tue Nov 06, 2012 2:55 pm
antibot: No, of course not.

How to hide tick lines on axis

Post by vineet.goel86 » Tue Nov 06, 2012 4:01 pm

Hello,

While generating bar graph or line graph with axis lines, we get small lines near axis tick labels.
We want to hide lines in some way.

Currently, axis looks like:
____________________________________
| | | | | | | | |
x1 x2 x3 x4 x5 x6 x7 x8 x9


I want it to look like:

____________________________________
x1 x2 x3 x4 x5 x6 x7 x8 x9

Is there any API available or some custom way to fix it?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: How to hide tick lines on axis

Post by John Matthews » Tue Nov 06, 2012 8:55 pm

Using this should work:

Code: Select all

axis.setTickMarksVisible(false);

Locked