Stack gas and solar sources (#10244)

This commit is contained in:
Bram Kragten 2021-10-20 06:44:41 +02:00 committed by GitHub
parent 7488eb782d
commit 9a4cce74f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,7 @@ export class HuiEnergyGasGraphCard
offset: true, offset: true,
}, },
y: { y: {
stacked: true,
type: "linear", type: "linear",
title: { title: {
display: true, display: true,
@ -306,6 +307,7 @@ export class HuiEnergyGasGraphCard
borderColor, borderColor,
backgroundColor: borderColor + "7F", backgroundColor: borderColor + "7F",
data: gasConsumptionData, data: gasConsumptionData,
stack: "gas",
}); });
} }

View File

@ -168,6 +168,7 @@ export class HuiEnergySolarGraphCard
offset: true, offset: true,
}, },
y: { y: {
stacked: true,
type: "linear", type: "linear",
title: { title: {
display: true, display: true,
@ -317,6 +318,7 @@ export class HuiEnergySolarGraphCard
borderColor, borderColor,
backgroundColor: borderColor + "7F", backgroundColor: borderColor + "7F",
data: solarProductionData, data: solarProductionData,
stack: "solar",
}); });
} }