From 27ca7ba7d7e42ce748f957e75bb9d26027c65f63 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) (cherry picked from commit c8edd1fb2565e255b00d79769873fad213fb7a05) --- .../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 57a09b11e6a7c..8794ee660b9fe 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts @@ -586,7 +586,7 @@ export default function transformProps( }); if (stack) { rows.reverse(); - if (focusedRow) { + if (focusedRow !== undefined) { focusedRow = rows.length - focusedRow - 1; } }