if (uiPreferences != null && dataViewId != null && !dataViewId.isEmpty()) {
Map<String, PlotProperties> propertiesMap = uiPreferences.getPlotPropertiesMap();
PlotProperties properties = propertiesMap.get(dataViewId.toLowerCase());
if (properties == null) {
properties = new PlotProperties();
CometeColor newColor = CometeColorUtil.getNewColor();
properties.getMarker().setStyle(IChartViewer.MARKER_BOX);
properties.getMarker().setColor(newColor);
properties.getCurve().setColor(newColor);
}
properties.getMarker().setLegendVisible(true);