limit in the number of categories ?

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

limit in the number of categories ?

Post by eric » Fri Feb 08, 2002 1:15 pm

Hi,

I would like to know if there is a limit in the number of categories in a verticalBarChart.
I tried with one category, 2,3 , up to 9.
At 10, I have a Data-exception.

Is there a limit in the number of series too ?
Is there a way to increase this 'bound' ?

nb: the reason whyI need so many categories is simply to draw an histogram where there is one serie only and each category represents one class so 10 is a 'common' number.



Thanks

David Gilbert

Re: limit in the number of categories ?

Post by David Gilbert » Fri Feb 08, 2002 3:34 pm

Hi Eric,

There's no limit (except that you run out of space for the labels), but there is a bug in the DefaultCategoryDataset class that a few people have reported already. I've fixed it, and will be releasing a new version of JFreeChart and JCommon very soon.

If you are preparing histograms, I would recommend looking at the VerticalXYBarPlot which uses an IntervalXYDataset. I think it would be a better class to use...

Regards,

DG.

eric

Re: limit in the number of categories ?

Post by eric » Fri Feb 08, 2002 6:09 pm

thanks

I will have a look on this class

Locked