add d3 avg and event samples