I needed the fillBetween plugin to fill to the origin when the bottom line had
finished. This seems like it might be good functionality in some cases, so I'm
logging an enhancement request.
My modified jquery.flot.fillbetween.js is attached. I'm not sure if it works
for all scenarios, as I'm only using it for a specific type of "torch"
projection.
The way my patch works is, if it finds that otherpoints ends earlier on the
x-axis than points, it adds x-axis values from points to otherpoints, with a
zero y-axis value, until they are the same length.
My use cases all involve two datasets with identical x-axis values (usually
whole years). If you have two different x-axis values (like dataset 1 has [0,
1, 2] and dataset 2 has [0.1, 1.1, 2.1], then this will fail. If interpolation
was done first it might work better.
Original issue reported on code.google.com by james.du...@gmail.com on 9 Jul 2012 at 4:44
Original issue reported on code.google.com by
james.du...@gmail.com
on 9 Jul 2012 at 4:44Attachments: