f.setDataArrayLineWidth(new int[] { 2 });
f.setY1GridStyle(IChartViewer.STYLE_LONG_DASH);
f.setY1GridVisible(true);
f.initDAO();
f.addChartViewerListener(new IChartViewerListener() {
@Override
public void chartViewerChanged(ChartViewerEvent event) {
StringBuilder builder = new StringBuilder("chartViewerChanged:");
builder.append("\n\tPoint: ").append(Arrays.toString(event.getSelectedPoint()));
builder.append("\n\tIndex: ").append(event.getSelectedIndex());