From c8edd1fb2565e255b00d79769873fad213fb7a05 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:07:12 -0300 Subject: [PATCH] fix: First item hovered on stacked bar (#30628) --- .../plugin-chart-echarts/src/Timeseries/transformProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts index bed39c7bc5180..c0da444bfe802 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts @@ -590,7 +590,7 @@ export default function transformProps( }); if (stack) { rows.reverse(); - if (focusedRow) { + if (focusedRow !== undefined) { focusedRow = rows.length - focusedRow - 1; } }