Does d3 have a built in method to plot a data set as a cumulative graph?
For example, if the y values are: [2, 4, 2, 2]
, I want them to actually be plotted as: [2, 6, 8, 10]
. Does d3 have a way to do this or would I have to traverse the data set and do this manually?