graphite-project/graphite-web — pull request #525 by jcsp (2013-12-10 18:09:40+00:00)
Title: Add 'json-array' format

This provides an array of (x, y1, y2) tuples
instead of multiple arrays of (x, y1), (x, y2)
tuples. It is efficient (the timestamp
is not repeated) and convenient for use with
the dygraphs library.

It has a constraint that when querying multiple series, they must provide the same timestep. If someone is using data which does not satisfy this requirement they should not use json-array, because it would have to munge in falsified values to fill in 'gaps' in coarser series.

This requires https://github.com/graphite-project/graphite-web/pull/523 to work reliably, because without PR 523 graphite does not choose sample resolution deterministically.

Based on 0.9.x because that's what we're using, but can submit PR for master if this patch is wanted.