mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-07 09:13:00 +02:00
fix selection, add zero default
This commit is contained in:
@@ -320,6 +320,11 @@ export function convert2uplot(canvasData) {
|
||||
let uplotData = [[],[]] // [X, Y1, Y2, ...]
|
||||
canvasData.forEach( cd => {
|
||||
if (cd.bin) { // MetricHisto Datafromat
|
||||
// Force Zero Entry for scaling
|
||||
if (uplotData[0].length == 0) {
|
||||
uplotData[0].push(0)
|
||||
uplotData[1].push(0)
|
||||
}
|
||||
uplotData[0].push(cd.max)
|
||||
uplotData[1].push(cd.count)
|
||||
} else { // Default
|
||||
|
Reference in New Issue
Block a user