Making a Stacked Area Chart With Processing

In order to visualize multiple variables in a single time series, a stacked area (sometimes called a “stream”) chart is often useful. I am currently doing research for an upcoming visualization that will trace the development of ideas through a conversation. Unable to find processing code to create an area chart, I decided to write my own. I imagine if I looked, there is something out there, but I also wanted something I could completely control to change the appearance of. Hopefully you will find the source useful in a project of your own. The image below is an example of the output from the code.

river1