if (task.getDateCompleted() != null)
interval.addDataPoint(task.getPlanValue(),
task.getActualDirectTime());
} else if (item instanceof DataPoint) {
DataPoint point = (DataPoint) item;
interval.addDataPoint(point.x, point.y);
}
}
interval.dataPointsComplete();
}