sample code using d3 data binding to draw lines (not working)