-
Notifications
You must be signed in to change notification settings - Fork 127
Composite graphs #10
Comments
You can use the Graphite API to solve many of these problems. For example to combine two metrics into one you can use |
That just returns a single metric. I'm talking about tasseo graphs with multiple metrics. |
Ah! Now I understand what you mean. On Tuesday 8 May 2012 at 16:44, Jason Dixon wrote:
|
👍 |
Man I need to get back on that. And while I'm at it, maybe move to using Bootstrap as a grid provider. Oh, and drag-and-drop. Shit, that way lies madness... |
Well, doing stacked graphs and such likees would be the first step ... suppose it would quite easy with Rickshaw, but will need to make some enhancements to the base data structures (i.e. datum/aliases) could try something like this: function constructGraphs() {
for (var i=0; i<realMetrics.length; i++) {
if (realMetrics[i] instanceof Array) {
aliases[i] = [];
descriptions[i] = [];
datum[i] = [];
for (var j=0; j<ealMetrics[i].length; j++) {
aliases[i][j] = realMetrics[i][j].alias || realMetrics[i][j].target;
descriptions[i][j] = realMetrics[i][j].description || null;
datum[i][j] = { x:0, y:0 };
var series = [{
name: aliases[i][j],
color: normalColorPalette[j],
data: datum[i][j],
}];
} else {
aliases[i] = realMetrics[i].alias || realMetrics[i].target;
descriptions[i] = realMetrics[i].description || null;
datum[i] = [{ x:0, y:0 }];
var series = [{
name: aliases[i],
color: normalColorPalette[0],
data: datum[i]
}];
}
graphs[i] = new Rickshaw.Graph({
element: document.querySelector('.graph' + i),
width: 348,
height: 100,
interpolation: 'step-after',
renderer: 'area',
stroke: true,
series: series,
});
graphs[i].render();
}
} |
Support stacked and/or multi-metric line graphs.
The text was updated successfully, but these errors were encountered: