LinearInterpolator linearInterpolator = new LinearInterpolator(timestamps, values);
linearInterpolator.setInterpolationMethod(LinearInterpolator.INTERPOLATE_RIGHT);
rrdGraphDef.datasource(dsName, linearInterpolator);
rrdGraphDef.area(dsName, color, dsName + "\\r");
rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
int width = graphPanel.getWidth(), height = graphPanel.getHeight();
rrdGraphDef.setWidth(width + deltaWidth);
rrdGraphDef.setHeight(height + deltaHeight);
rrdGraph = new RrdGraph(rrdGraphDef);
if (deltaWidth == 0 && deltaHeight == 0) {