mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 20:36:35 +00:00
always zoom timeline charts on x axis (#23554)
This commit is contained in:
parent
0fba0e2850
commit
f19ca78b89
@ -433,7 +433,10 @@ export class HaChartBase extends LitElement {
|
||||
speed: 0.05,
|
||||
},
|
||||
mode:
|
||||
(this.options?.scales?.y as any)?.type === "category" ? "y" : "x",
|
||||
this.chartType !== "timeline" &&
|
||||
(this.options?.scales?.y as any)?.type === "category"
|
||||
? "y"
|
||||
: "x",
|
||||
onZoomComplete: () => {
|
||||
const isZoomed = this.chart?.isZoomedOrPanned() ?? false;
|
||||
if (this._isZoomed && !isZoomed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user