protected double defaultYMinAlarm = -100;
protected double defaultYMaxAlarm = 100;
@Override
protected ChartViewer initWidget() {
ChartViewer chartViewer = new ChartViewer();
chartViewer.setFreezePanelVisible(false);
chartViewer.setManagementPanelVisible(false);
chartViewer.setOpaque(false);
// chartViewer.setChartBackground(new Color(255, 255, 255, 0));
// chartViewer.setChartMainBackground(new Color(255, 255, 255, 0));
chartViewer.setHeaderVisible(true);
xProp = new AxisProperties();
xProp.setPosition(IChartViewer.HORIZONTAL_ORGY1);
xProp.setDrawOpposite(true);
xProp.setAutoScale(false);
xProp.setScaleMin(DEFAULT_X_MIN_VALUE);
xProp.setScaleMax(DEFAULT_X_MAX_VALUE);
y1Prop = new AxisProperties();
y1Prop.setDrawOpposite(true);
y1Prop.setAutoScale(false);
y1Prop.setScaleMin(DEFAULT_Y_MIN_VALUE);
y1Prop.setScaleMax(DEFAULT_Y_MAX_VALUE);
y1Prop.setGridVisible(true);
y1Prop.setSubGridVisible(true);
y1Prop.setGridStyle(IChartViewer.STYLE_DOT);
ChartProperties chartProp = new ChartProperties();
chartProp.setXAxisProperties(xProp);
chartProp.setY1AxisProperties(y1Prop);
chartViewer.setChartProperties(chartProp);
chartViewer.getChart().setPaintAxisFirst(false);
return chartViewer;
}