From 95408c1776597b9cd5d93eb81f8b12e4624cad24 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Mon, 7 Jul 2025 10:21:07 +0300 Subject: [PATCH] simplify --- src/components/chart/ha-chart-base.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index 45a6eecf72..bfc6e9ce06 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -379,6 +379,9 @@ export class HaChartBase extends LitElement { ...axis.axisPointer, status: "show", handle: { + color: colorVariables["primary-color"], + margin: 0, + size: 20, ...axis.axisPointer?.handle, show: true, }, @@ -475,17 +478,6 @@ export class HaChartBase extends LitElement { if (xAxis) { xAxis = Array.isArray(xAxis) ? xAxis : [xAxis]; xAxis = xAxis.map((axis: XAXisOption) => { - if (this._isTouchDevice) { - axis.axisPointer = { - handle: { - color: colorVariables["primary-color"], - margin: 0, - size: 20, - ...axis.axisPointer?.handle, - }, - ...axis.axisPointer, - }; - } if (axis.type !== "time" || axis.show === false) { return axis; }