use d3 script to visualize stats data