adobe / react-spectrum-charts

Build compelling visualizations using declarative react components.
http://opensource.adobe.com/react-spectrum-charts/
Apache License 2.0
65 stars 14 forks source link

feat: Add item interaction mode for line #401

Closed pratyushbanerjee closed 1 month ago

pratyushbanerjee commented 2 months ago

Description

Add item interaction mode for Line that triggers tooltip when hovering over a particular area near points on the line

Related Issue

https://github.com/adobe/react-spectrum-charts/issues/364

Motivation and Context

Voronoi method for tooltips on Line does not allow interaction with elements behind the line. item interaction mode allows for more precise interactions with the points on the Line and allows interaction with elements behind it.

How Has This Been Tested?

Passed existing tests Added tests to cover changes

Screenshots (if appropriate):

Types of changes

Checklist:

github-actions[bot] commented 2 months ago

🎨 Storybook -> https://opensource.adobe.com/react-spectrum-charts/PR-401

github-actions[bot] commented 2 months ago

🎨 Storybook -> https://opensource.adobe.com/react-spectrum-charts/PR-401

github-actions[bot] commented 1 month ago

🎨 Storybook -> https://opensource.adobe.com/react-spectrum-charts/PR-401

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

marshallpete commented 1 month ago

Great job!