Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add highlightBy feature for ChartTooltip #238

Closed
marshallpete opened this issue Apr 10, 2024 · 0 comments · Fixed by #281
Closed

Add highlightBy feature for ChartTooltip #238

marshallpete opened this issue Apr 10, 2024 · 0 comments · Fixed by #281
Assignees

Comments

@marshallpete
Copy link
Member

Provide a general summary of the feature here

Add a the ability to specify which marks should be highlighted on hover. Currently, hovering only highlights the hovered item. It would be useful to be able to highlight by item, dimension, series, or a list of custom keys.

🤔 Expected Behavior?

highlightBy="item" should be the default to prevent breaking changes.
highlightBy="dimension" will highlight by the dimension key set on the parent mark.
highlightBy="series" will highlight by rscSeriesId.
highlightBy={['period', 'event']} will highlight all points (bars etc.) that have the same period and event values as the highlighted point.

💁 Possible Solution

Add a new id called rscGroupId to any dataset that has highlightBy set to an array. This will join the key values together like we do for rscSeriesId.
Add highlight ruled for highlightedGroup like we do for highlightedSeries and highlightedItem.

🔦 Context

When highlighting a point on a time compare plot, we want to highlight both the current point and the associated past point.

💻 Examples

No response

🧢 Your Company/Team

Adobe/Product Analytics

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

Successfully merging a pull request may close this issue.

2 participants