mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +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,
|
||||
]);
|
||||
}
|
||||
datasets.push({ data: dataRow, entity_id: stateInfo.entity_id });
|
||||
datasets.push({
|
||||
data: dataRow,
|
||||
entity_id: stateInfo.entity_id,
|
||||
});
|
||||
labels.push(entityDisplay);
|
||||
});
|
||||
|
||||
@ -234,6 +237,9 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
||||
fontStyle: "bold",
|
||||
},
|
||||
},
|
||||
categoryPercentage: undefined,
|
||||
barPercentage: undefined,
|
||||
time: { format: undefined },
|
||||
},
|
||||
],
|
||||
yAxes: [
|
||||
@ -242,10 +248,17 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
||||
yaxe.maxWidth = yaxe.chart.width * 0.18;
|
||||
},
|
||||
position: this._computeRTL ? "right" : "left",
|
||||
categoryPercentage: undefined,
|
||||
barPercentage: undefined,
|
||||
time: { format: undefined },
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
datasets: {
|
||||
categoryPercentage: 0.8,
|
||||
barPercentage: 0.9,
|
||||
},
|
||||
data: {
|
||||
labels: labels,
|
||||
datasets: datasets,
|
||||
|
Loading…
x
Reference in New Issue
Block a user