Skip to content

[BUG] VueUiStackbar selectLegend emit does not return current visible series when selecting / unselecting the legend. #260

@dennismeister93

Description

@dennismeister93

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug : datasetDataset is not being computed properly

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions