DefaultCategoryDataset dataset=(DefaultCategoryDataset)datasets.get("1");
Dataset copyDataset=null;
DatasetMap newDatasetMap=null;
boolean notDisappearSlider=false; // if n_visualization>=number total categories do not make slider disappear
try {
copyDataset = (DefaultCategoryDataset)dataset.clone();
} catch (CloneNotSupportedException e) {
logger.error("error copying dataset");
e.printStackTrace();
}
try{