@Override
public void createPartControl(Composite parent) {
this.parent = parent;
chart = new TimeSeriesChart(parent, SWT.NONE);
chart.setSeriesRenderer(new LevelSeriesRenderer());
chart.setMargins(MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM);
getSite().getPage().addSelectionListener(this);
selectionChanged(null, getSite().getPage().getSelection());
}