vertical bar chart

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

vertical bar chart

Post by satish » Tue Jul 23, 2002 3:56 pm

hello everyone,

i'm using the vertical bar chart of your wonderful package.
firstly,i must thank all u people for the wonderful job.
i would like to disable the horizontal axis labels i.e the x-axis labels.
As i do not have any category it's not neccesary to have a x-axis lables.
how can i disable the lables.
secondly, can i change the color of the bar to our requirements.
hoping a reply from u sooon.

thanks in advance
regards
satish

David Gilbert

Re: vertical bar chart

Post by David Gilbert » Tue Jul 23, 2002 4:15 pm

You should be able to do this:

CategoryPlot myPlot = myChart.getCategoryPlot();
CategoryAxis myAxis = myPlot.getDomainAxis();
myAxis.setTickLabelsVisible(false);

Regards,

DG.

Locked