I try to build a streamgraph to visualize similar terms over time, but it always returns NaN for y0. I compared my solution with several ones on the internet but can't make out a difference. Here is the code:
Any help would be really appreciated, as I'm about to go mad. ;'(