// Assume that List is sorted.
UiEvent earliest = (UiEvent) selectedNodes.get(0).getItemTarget();
UiEvent latest = (UiEvent) selectedNodes.get(selectedNodes.size() - 1).getItemTarget();
double delta = latest.getTime() - earliest.getTime();
TableRowElement row = table.appendRow();
TableCellElement cell = row.insertCell(-1);
cell.setClassName(getCss().detailsTableKey());
cell.setInnerText("Time Delta");
cell = row.insertCell(-1);
cell.setInnerText(TimeStampFormatter.formatMilliseconds(delta));
// ensure that the table is positioned below the pieChart
table.getElement().getStyle().setPropertyPx("marginTop", pieChartHeight);
return table;