I'm using flot to display aggregated data from different hosts:
a separate graph for every host, a point every five minutes, number of
events on axis Y
I'm using series: lines, but it has a problem: when you have an
isolated point (no data before and after it), lines throws it away.
I could use series: points, but it would display every point clogging
the chart greatly.
My solution? New series type which only displays points which have no
data before and after, essentially complimenting series: lines.
Here is the screenshot:
http://img-fotki.yandex.ru/get/4516/263065.1/0_827fe_38b636d1_orig
Options:
var options = { xaxis: { mode: "time" }, selection: { mode: "x" },
series: { isolatedPoints: { show: true }, lines: { show:
true } },
legend: { position: "nw" }, grid: { markings:
weekendAreas }
};
The code is not pretty because a lot of useful functions are closured
out and I had to copy-paste them:
http://pastebin.com/JSLRBRma
Any hopes for integrating the functionality into mainline?