Showing Tick for CatagoryAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
reach2kanchan
Posts: 32
Joined: Wed Jan 07, 2009 5:09 am

Showing Tick for CatagoryAxis

Post by reach2kanchan » Sat Nov 20, 2010 2:28 pm

Hi,

I have a requirement where i can set tick value with unit interval in CatagoryAxis.
I have seen it is possibile to set a unit interval using setTickUnit() in DateAxis.

My Problem is the following: I have some values on the x-axis, for example:
1,1.5,2,2.5,3,3.5,4,4.5,5,5.5
and I want to display on the x-axis only the units for:
1,2,3,4,5

Any suggestion? Thx in advance

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: Showing Tick for CatagoryAxis

Post by skunk » Sat Nov 20, 2010 11:13 pm

Any time you need to skip category axis labels is a sign that you should be using an XYPlot instead of a CategoryPlot. There are some hackish solutions posted on this list but in my opinion you would be better off using the correct classes instead.

Locked