This example calculates statistics for values in a line chart. The result gets drawn as lines and text. After a brushing interaction the result gets updated.