frame.setup();
Timer timer = new Timer();
final LinearXYAxis xAxis = (LinearXYAxis) frame.getXAxis();
final XYAxis yAxis = frame.getYAxis();
xAxis.setTickMarkCalculator(new TimeTickMarkCalculator());
xAxis.setFormat(new DateNumberFormat(new SimpleDateFormat("yyyy-MM-dd\nHH:mm:ss.SSS")));
final LinearXYPlotLine line = new LinearXYPlotLine(xAxis, yAxis, XYDimension.X);
line.setForeground(Color.white);
final CompressingXYDataset d = new CompressingXYDataset(line, new DefaultCompressor());