Skip to content

feat: Hide and show with new legend icon#826

Open
tanugarg04 wants to merge 2 commits into
mainfrom
AN-450448
Open

feat: Hide and show with new legend icon#826
tanugarg04 wants to merge 2 commits into
mainfrom
AN-450448

Conversation

@tanugarg04

@tanugarg04 tanugarg04 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

AN-450448 — S2 Legend: VisibilityOff icon overlay for hidden series

Description

In S1, clicking a toggleable legend entry grays the swatch and label to gray-300/gray-500. In S2 the design is different: the swatch visually disappears (background color via Vega signal), the label stays at full opacity, and a VisibilityOff icon from @spectrum-icons/workflow overlays the swatch position. Clicking again removes the icon and restores the swatch.

The series hide/show toggle mechanics (the hiddenSeries Vega signal, series disappearing from the chart) are unchanged. S1 behavior is unaffected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
4 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant