HumbleSoftware/Flotr2 — pull request #94 by orgrim (2012-05-23 19:52:27+00:00)
Title: Implement fill on stacked lines and other fixes

Hello,

Having this feature is not easy, so I came up with this patch that work for me.

The patch includes the following modifications in the plot method of the lines type :

- An attempt to implement the fill on staked lines. The current limitations are :
- Only works if the x values are the same for all the series
- When a lower line have a hole not present in the upper line, we see some white in the bottom corners of the hole (see the example, the stack lacks the info needed to fill those blanks)
- Fix the stack increment for empty values where data[i][1] is not null
- Restart the path when encountering holes even if fill is false
- Issue the moveTo() when updating the start value
- Do not skip the points outside the canvas (the canvas clips the shapes by itself) to avoid glitches in the fill

Example: http://jsfiddle.net/6TqT4/6/

--
Nicolas