flot/flot — pull request #67 by risicle (2012-07-24 08:46:40+00:00)
Title: add setup/finishDrawContext and setup/finishDrawFillContext callback options to "lines" series options

Ok, esoteric option time, but I needed it, so *shrug*.

This allows an advanced user to mess around with the canvas context used to draw the line or line area fill just before the drawing is done. More complex effects can be achieved this way.

Also add corresponding "finish" callbacks to allow user to perhaps piggy-back on any state set up by plotLine() etc.

You may be wondering why I didn't implement these as hooks. Hooks seem to really be intended for things that are "stackable", whereas callbacks messing around with the context are almost necessarily going to trample each other if you try and use more than one at once.