mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +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,
|
speed: 0.05,
|
||||||
},
|
},
|
||||||
mode:
|
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: () => {
|
onZoomComplete: () => {
|
||||||
const isZoomed = this.chart?.isZoomedOrPanned() ?? false;
|
const isZoomed = this.chart?.isZoomedOrPanned() ?? false;
|
||||||
if (this._isZoomed && !isZoomed) {
|
if (this._isZoomed && !isZoomed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user