working with the exercise on realtime chart using d3.js.