Skip to content

Commit 0145ca2

Browse files
committed
fix(tooltip): Values where following the selected point
1 parent e7ed408 commit 0145ca2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/apex-layouts.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export function getLayoutConfig(config: ChartCardConfig, hass: HomeAssistant | u
5656
},
5757
},
5858
y: {
59-
formatter: function (_, opts, conf = config, hass2 = hass) {
60-
let value = opts.w.globals.series[opts.seriesIndex].slice(-1)[0];
59+
formatter: function (value, opts, conf = config, hass2 = hass) {
6160
if (value !== null && typeof value === 'number' && !Number.isInteger(value)) {
6261
value = (value as number).toFixed(1);
6362
}

0 commit comments

Comments
 (0)