work on d3 cumulative line chart