Realtime line chart using d3.js