Demo code for setting up d3 line chart