mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Fix chart labels for multi year periods (#25572)
This commit is contained in:
parent
c11d2c10df
commit
9b8be9f1af
@ -387,9 +387,9 @@ export class HaChartBase extends LitElement {
|
||||
if (axis.type !== "time" || axis.show === false) {
|
||||
return axis;
|
||||
}
|
||||
if (axis.max && axis.min) {
|
||||
if (axis.min) {
|
||||
this._minutesDifference = differenceInMinutes(
|
||||
axis.max as Date,
|
||||
(axis.max as Date) || new Date(),
|
||||
axis.min as Date
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user