Skip to content

armgit / core

Public Imported from GitHub
0

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

Removed toolbox controls from the attribute history chart (#1980)

Martin Peetersc6abc9e367d7
diff --git a/ui/component/or-attribute-history/src/index.ts b/ui/component/or-attribute-history/src/index.ts
index ad66d1163..5f5057237 100644
--- a/ui/component/or-attribute-history/src/index.ts
+++ b/ui/component/or-attribute-history/src/index.ts
@@ -399,6 +399,7 @@ export class OrAttributeHistory extends translate(i18next)(LitElement) {
borderColor: this._style.getPropertyValue("--internal-or-attribute-history-text-color"),
left: 4,
right: 4,
+ top: 10,
containLabel: true
},
backgroundColor: this._style.getPropertyValue("--internal-or-asset-viewer-panel-color"),
@@ -414,18 +415,6 @@ export class OrAttributeHistory extends translate(i18next)(LitElement) {
return ''
}
},
- toolbox: {
- right: '2%',
- top: '5%',
- feature: {
- dataView: {readOnly: true},
- saveAsImage: {
- name: ['History', this.assetId, this.attribute?.name, `${moment(this._startOfPeriod).format("DD-MM-YYYY HH:mm")} - ${moment(this._endOfPeriod).format("DD-MM-YYYY HH:mm")}`]
- .filter(Boolean)
- .join(' ')
- },
- }
- },
xAxis: {
type: 'time',
axisLine: { onZero: false, lineStyle: {color: this._style.getPropertyValue("--internal-or-attribute-history-text-color")}},