square/cubism — pull request #43 by nickstenning (2013-02-17 13:43:27+00:00)
Title: Add keepLastValue(): basic graphite interpolation

This commit adds a "keepLastValue()" method to graphite metric objects,
allowing metrics with resolutions less than the step size to be displayed as
continuous blocks of colour, rather than "delta comb"-style plots.

I've added this here, because it provides a consistent way to call graphite's
`keepLastValue` function when the cubism step size isn't the default. The
problem is that you want to call `keepLastValue` on the output of `summarize`,
which `context.graphite` doesn't (as far as I can tell) currently provide any
facility to do.

Do let me know if you'd rather it be called something else, or if you'd like
me to include the recompiled cubism.v1.js in the branch, etc!