Question: Howto display selected categories onthe DomainAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
iraklismath
Posts: 4
Joined: Tue Jan 22, 2008 10:47 am

Question: Howto display selected categories onthe DomainAxis

Post by iraklismath » Tue Jan 22, 2008 5:50 pm

I have a bar chart that the domain axis ranges from 0 to 360 (i'm plotting degrees). So i Have this :

Code: Select all

for (int i = 0; i < 360; i++) {
                            veloCategoryDataset.addValue(bins[i], "Row 1", String.valueOf(i));
                        }
Is there a way to display the label of only selected categories on the Chart ? eg, 0 - 90 - 180 - 270 - 360 ?

Because at the moment there is just not enough space to display all 360 labels. (it draws as a straight line);

Thanks!@

Locked