Move colorDataset.add() and toolTips.add() outside the try-catch
@@ -149,20 +149,15 @@ public class EICPlot extends EChartViewer {
for (Entry<Double, Double> e : cluster.get(j).entrySet())
series.add(e.getKey(), e.getValue());
- try{
colorDataset.add(color);
toolTips.add(info.get(i).get(j));
+ try{
xyDataset.addSeries(series);
}
catch(Exception e) {
logger.log(Level.WARNING, e.getMessage(), e);
}
- finally {
-
- }
-
}
-
}
}
}
