how to deal with 100+ bars in Horizontal Stacked Bar Chart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
kyunam
Posts: 9
Joined: Wed Jan 28, 2004 3:10 am

how to deal with 100+ bars in Horizontal Stacked Bar Chart?

Post by kyunam » Sun May 02, 2004 9:40 pm

yeah, for example, I want to have 100 horizontal bars in the Horizontal Stacked Bars Chart.
When they show up, each bar is really thin (don't look good).

How do I tell each bar to keep the minimum or prefered size?
Also, category labels (my labes are little bit long) are overlapped.
How do I avoid this?

Thanks in advance!

Regards,
Q

gotti
Posts: 6
Joined: Sun May 02, 2004 2:22 pm

Post by gotti » Thu May 06, 2004 8:51 am

I´ve got the same problem - i need to display around 50 bars. The only thing that worked for me is to use vertical labels and smaller font type. I would prefer a solution that allows to define wich labels are shown but i guess there is nothing like that - am i wrong?

CategoryAxis domainAxis = plot.getDomainAxis();
Font xFont = new Font("Arial", Font.TRUETYPE_FONT,6);
domainAxis.setTickLabelFont(xFont);
domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);

Locked