Skip to content

Conversation

@marshallpete
Copy link
Member

Description

Add support for controlled highlighting of items. By supplying a highlightedItem which can be a single value or and array of items, the developer can control which data points should be highlighed.

If the chart has other interactive elements, as soon as the user hovers over one of those other elements, the controlled highlighted point will be overwritten by the hover highlighting

Motivation and Context

Controlled highlighting of items allows for cool integrations with things like tables where highlighting a table cell can highlight the associated point on the chart.

Screenshots (if appropriate):

image

Story

Chart > HighlightedItem

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.

@github-actions
Copy link

github-actions bot commented Dec 3, 2024

@github-actions
Copy link

github-actions bot commented Dec 4, 2024

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2024

@github-actions
Copy link

github-actions bot commented Dec 4, 2024

@Abigail-Larsen Abigail-Larsen merged commit c989800 into main Dec 4, 2024
6 checks passed
@Abigail-Larsen Abigail-Larsen deleted the highlightedItem branch December 4, 2024 23:22
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.

3 participants