I would like a stream graph as in this example: http://mbostock.github.com/d3/ex/stream.html
but I would like real time data entering from the right and have old data leave from the left, such that I always have a window of 200 samples. How would I do this such that I have the appropriate transitions?
I tried changing the data points in the array a and then recreating an area as such
data0 = d3.layout.stack()(a);
but my transitions do not make it look like the chart is sliding across the screen.
Thanks in advance.
Try this tutorial:
Here is a simple example: http://jsfiddle.net/cqDA9/1/ It shows a possible solution to keeping track and updating the different data series.