Describe the bug
The selectLegend event in VueUiStackbar component does not return current visible series when selecting / unselecting the legend.
When the legend is unselected you get the name as string (which should also be an object?) but when trying to select again you just get undefined
See VueUiStackbar and VueUiXy
Using:
<VueUiStackbar
ref="chartRef"
:config="config"
:dataset="dataset"
@select-legend="handleSelectLegend"
/>
<VueUiXy
ref="chart"
:config="config"
:dataset="dataset"
@select-legend="handleSelectLegend"
/>
Expected behavior
Same behavior like in VueUiXy
Screenshots
If applicable, add screenshots to help explain your problem.
Vue Data UI version (please complete the following information):
3.4.5
Additional context
Add any other context about the problem here.