Removing Categories from DefaultBoxAndWhiskerCategoryDataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Flow2k
Posts: 6
Joined: Tue Dec 19, 2006 1:29 pm

Removing Categories from DefaultBoxAndWhiskerCategoryDataset

Post by Flow2k » Tue Dec 19, 2006 1:31 pm

Hi all,

is there any way to remove a Column from a DefaultBoxAndWhiskerCategoryDataset?
I'm thinking of sth like the removeColumn() function of the DefaultCategoryDataset..

Thanks in advance
KR
Florian

Flow2k
Posts: 6
Joined: Tue Dec 19, 2006 1:29 pm

Post by Flow2k » Thu Dec 28, 2006 3:36 pm

I solved this by implementing a removeCategory() - function in the DefaultBoxAndWhiskerCategoryDataset - Class

Code: Select all

 public void removeCategory(String cat){
    	this.data.removeColumn(cat);
    	this.fireDatasetChanged();
    }
KR
Florian

Locked