d3 line and scatter charts with tooltip and animation