mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Fix chartjs deprecation warnings (#9261)
This commit is contained in:
parent
27845a7345
commit
eaccd22267
@ -194,7 +194,10 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
|||||||
invertOnOff,
|
invertOnOff,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
datasets.push({ data: dataRow, entity_id: stateInfo.entity_id });
|
datasets.push({
|
||||||
|
data: dataRow,
|
||||||
|
entity_id: stateInfo.entity_id,
|
||||||
|
});
|
||||||
labels.push(entityDisplay);
|
labels.push(entityDisplay);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -234,6 +237,9 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
|||||||
fontStyle: "bold",
|
fontStyle: "bold",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
categoryPercentage: undefined,
|
||||||
|
barPercentage: undefined,
|
||||||
|
time: { format: undefined },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
yAxes: [
|
yAxes: [
|
||||||
@ -242,10 +248,17 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
|||||||
yaxe.maxWidth = yaxe.chart.width * 0.18;
|
yaxe.maxWidth = yaxe.chart.width * 0.18;
|
||||||
},
|
},
|
||||||
position: this._computeRTL ? "right" : "left",
|
position: this._computeRTL ? "right" : "left",
|
||||||
|
categoryPercentage: undefined,
|
||||||
|
barPercentage: undefined,
|
||||||
|
time: { format: undefined },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
datasets: {
|
||||||
|
categoryPercentage: 0.8,
|
||||||
|
barPercentage: 0.9,
|
||||||
|
},
|
||||||
data: {
|
data: {
|
||||||
labels: labels,
|
labels: labels,
|
||||||
datasets: datasets,
|
datasets: datasets,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user