options.setMax(dtf.parse("2012-12-31")); // upper limit of visible range
options.setZoomMin(1000L * 60L * 60L * 24L); // one day in milliseconds
options.setZoomMax(1000L * 60L * 60L * 24L * 31L * 3L); // about three months in milliseconds
// create the timeline, with data and options
timeline = new Timeline(data, options);
// add event handlers
timeline.addSelectHandler(createSelectHandler(timeline));
timeline.addRangeChangeHandler(createRangeChangeHandler(timeline));
timeline.addChangeHandler(createChangeHandler(timeline));