Hello,
I'm trying to use the third contructor:
DefaultCategoryDataset(seriesNames,categories,data) to set the names of Category Labels.
I use a String[] for the series naming, and that works fine.
I use a Double[][] for the data, and this is also fine.
The problem is with the Object[] used to set the Category labels. I am constructing a String[] with the labels for the Categories.
However, at runtime I always get an IllegalArgumentException: DefaultCategoryDataset.getValue(...): unknown category.
Can anybody help with this?
Thanks,
Mike
DefaultCategoryDataset to set labels
Re: DefaultCategoryDataset to set labels
Hi Mike,
If you are using 0.7.1 then you have come across a bug that is fixed in 0.7.2. If you are using 0.7.2 then I didn't do a very good job of fixing the bug...
DG
If you are using 0.7.1 then you have come across a bug that is fixed in 0.7.2. If you are using 0.7.2 then I didn't do a very good job of fixing the bug...
DG
Re: DefaultCategoryDataset to set labels
Hi,
I was using 0.7.1. Just downloaded 0.7.2 - and the problem is fixed!
Thanks,
Mike
I was using 0.7.1. Just downloaded 0.7.2 - and the problem is fixed!
Thanks,
Mike