mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
feat: Implemented rooflineplot with uPlot
This commit is contained in:
parent
0993549cac
commit
c4a9fcc1ca
@ -22,9 +22,6 @@
|
|||||||
* data[2] = [0.1, 0.15, 0.2, ...] // Color Code -> Time Information (Floats from 0 to 1) (Optional)
|
* data[2] = [0.1, 0.15, 0.2, ...] // Color Code -> Time Information (Floats from 0 to 1) (Optional)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Check
|
|
||||||
// console.assert(data , "you must provide data")
|
|
||||||
|
|
||||||
// Helpers
|
// Helpers
|
||||||
function getGradientR(x) {
|
function getGradientR(x) {
|
||||||
if (x < 0.5) return 0
|
if (x < 0.5) return 0
|
||||||
@ -82,7 +79,6 @@
|
|||||||
u.ctx.fill(p);
|
u.ctx.fill(p);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user