Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Chart: Bugfix for undefined unit text on predicted datapoints (#1782)

Dominique Kleevenb639a7bc87ad
diff --git a/ui/component/or-chart/src/index.ts b/ui/component/or-chart/src/index.ts
index a7c19bd5e..450358119 100644
--- a/ui/component/or-chart/src/index.ts
+++ b/ui/component/or-chart/src/index.ts
@@ -1126,6 +1126,7 @@ export class OrChart extends translate(i18next)(LitElement) {
data.push(dataset);
dataset = await this._loadAttributeData(this.assets[assetIndex], attribute, this.colors[colourIndex], predictedFromTimestamp, this._endOfPeriod!, true, asset.name + " " + label + " " + i18next.t("predicted"), options);
+ (dataset as any).unit = unit;
data.push(dataset);
});
}