added d3 summary directive