JpGraph

Being landlocked by the marathon for most of the day, I ended up mostly hacking around with JpGraph instead of doing the countless other things I should have been doing.

That being said, I don’t think it was a total waste of time. My goal was to try to replicate the floater/sinker graphs that EatWatch creates, and I more or less succeeded. I’m using a simple moving average rather than a full blown exponentially smoothed moving average (I think it’s pretty straightforward to implement, TODO) and I don’t know how (or if) the first values are dealt with in EatWatch.

The above is fake data, but it gives an idea (I don’t have enough data points yet for the SMA to kick in). Here’s a look at the source, and also the patch for the floater/sinker enabled scatterplot (against JpGraph 1.17)