-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Highlight & Zoom Broken in v2.4 #3369
Comments
Thanks for the report, I see what you mean - will take a look as soon as I can |
Here is a more up to date codesandbox using hooks - https://codesandbox.io/s/highlight-zomm-line-chart-forked-holzzh?file=/src/App.tsx Same behavior though |
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> - Add HighlightAndZoom example from an issue and from the website, use hooks version ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> #3369 - issue with currently broken zoom functionality #3333 - example from this issue ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> - adds a new example to test this ffunctionality on ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> run storybook ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] 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: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] 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 added tests to cover my changes. - [x] All new and existing tests passed. Co-authored-by: Coltin Kifer <ckifer@amazon.com>
Added an example in the storybook here - https://master--63da8268a0da9970db6992aa.chromatic.com/?path=/story/examples-linechart-highlightandzoom--highlight-and-zoom Will use this to debug (@Yilun-Sun @nikolasrieble @proke03 also feel free to use this to debug if you want to help before I can get around to it) |
|
if This is even called out in the PR desc
Action item will be to look at the PR diff to figure out why exactly this isn't behaving as it should. Probably a larger issue :/ |
Released 2.4.2 - check out https://codesandbox.io/s/highlight-zomm-line-chart-forked-holzzh?file=/src/App.tsx and let me know if you have any other issues. Thanks @swively |
Reproduction link
https://recharts.org/en-US/examples/HighlightAndZoomLineChart
Steps to reproduce
Check out the recharts.org example page for Highlight and Zoom Line Chart, its broken there as well.
Once you zoom in any amount, all inner data points are no longer highlightable (tooltip or click), only the first and last data points, so you can no longer interact with the charts and tooltips are broken
What is expected?
You should be able to further zoom, as well as see a tooltip for each datapoint in the frame.
What is actually happening?
All inner datapoints are no longer accessible
The text was updated successfully, but these errors were encountered: