I´m using DefaultCategoryDataset(seriesname,categories,data).
Categories have 4 elements and seriesnames 5 elements.
The data, indexed as data[series][category]. (series=5 and category=4)
But in constructor gives an exception "the number of categories does not match the data".
However If I change data to data[CATEGORY][SERIES] chart run correctly.
Only one problem. If I use getSeriesCount method gives me 4 but should return 5!!!!!
Is a bug?
DefaultCategoryDataset & data array
Re: DefaultCategoryDataset & data array
How is 'categories' defined? It should be an array of four Objects.
Regards,
DG
Regards,
DG
Re: DefaultCategoryDataset & data array
String[] categorias=null;
//.....
I init them with String Objects.
//.....
I init them with String Objects.
Re: DefaultCategoryDataset & data array
Sorry I´ve forgotten.
I have tried whitout categories and series and In XAxis only have 4 series (not 5).
I have tried whitout categories and series and In XAxis only have 4 series (not 5).
Re: DefaultCategoryDataset & data array
Sorry, there was a mine problem. Forgot it. Thanks.