Category Axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mkrumpak
Posts: 3
Joined: Sat Oct 14, 2006 3:31 pm

Category Axis

Post by mkrumpak » Sat Oct 14, 2006 3:40 pm

Hi,

I can't turn the category axis off or change its color to white. Here's what I have tried already.

CategoryAxis domainAxis = (CategoryAxis) plot.getDomainAxis();
domainAxis.setAxisLineVisible(false);
domainAxis.setVisible(false);
domainAxis.setAxisLinePaint(Color.White);

The above calls work for the range axis and I can turn it off, but a light gray category axis just won't go away. The chart is a bar chart and orientation is horizontal. The chart always has two bars.

Any suggestions?


PS: I am creating this chart in iReports and then using the customizer class to fine tune the chart by setting attributes not accessible from iReports.

Locked