I'm using JFreeChart to create a "vertical bar chart" with only one category.
I have been unable to determine where the "default" label value (below the horizontal axis)...
"Category 1"
...is generated
(-- I want to eliminate this label, since the bar chart I'm creating does not have multiple categories)
Can anyone tell me what class/method I can invoke/override to prevent this label?
Thanks for any help on this.
jw
"Category 1"
Re: "Category 1"
The following code should hide the category labels:
CategoryPlot plot = myChart.getCategoryPlot();
Axis axis = plot.getDomainAxis();
axis.setTickLabelsVisible(false);
Regards,
DG.
CategoryPlot plot = myChart.getCategoryPlot();
Axis axis = plot.getDomainAxis();
axis.setTickLabelsVisible(false);
Regards,
DG.
Re: "Category 1"
Hi DG
Thanks for your help.
I feel a little sheepish for not looking more deeply and experimenting with this particular method.
I just didn't intuit any relationship between the method name - setTickLabelsVisible - and this particular label...(I certainly won't forget, though).
Thanks again!
jw
Thanks for your help.
I feel a little sheepish for not looking more deeply and experimenting with this particular method.
I just didn't intuit any relationship between the method name - setTickLabelsVisible - and this particular label...(I certainly won't forget, though).
Thanks again!
jw