setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
getTitle().setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
getLegend().setVisible(false);
// x axis
IAxis xAxis = getAxisSet().getXAxis(0);
xAxis.getTitle().setVisible(false);
xAxis.getTick().setVisible(false);
xAxis.getGrid().setStyle(LineStyle.NONE);
String[] categories = new String[dates.size()];
for (int ii = 0; ii < categories.length; ii++)
categories[ii] = dates.get(ii).toString(ISODateTimeFormat.date());
xAxis.setCategorySeries(categories);
xAxis.enableCategory(true);
// y axis
IAxis yAxis = getAxisSet().getYAxis(0);
yAxis.getTitle().setVisible(false);
yAxis.getTick().setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
yAxis.setPosition(Position.Secondary);
((IPlotArea) getPlotArea()).addCustomPaintListener(new ICustomPaintListener()
{
@Override
public void paintControl(PaintEvent e)