Private
Public Access
1
0

Fix legend hover not highlighting table row

legendMouseOver receives (chartContext, config), not three parameters.
The extra parameter was shifting config to undefined.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-15 21:23:30 -05:00
parent fcffdce6d8
commit 1df5283188
+1 -1
View File
@@ -358,7 +358,7 @@ const spendingChartOptions = computed(() => ({
dataPointMouseLeave: () => { dataPointMouseLeave: () => {
setChartHighlight(null) setChartHighlight(null)
}, },
legendMouseOver: (_ctx: any, _opts: any, config: any) => { legendMouseOver: (_ctx: any, config: any) => {
const labels = spending.value?.categories.map(c => c.categoryName) ?? [] const labels = spending.value?.categories.map(c => c.categoryName) ?? []
setChartHighlight(labels[config.seriesIndex] ?? null) setChartHighlight(labels[config.seriesIndex] ?? null)
}, },