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
Synchronized graph do not synchronize on XAxis range move #2479
Comments
I noticed in my local project, if remove Tooltip component from graph with Brush inside, Brush will works correctly. But in this case (without Tooltip), we will have not synchronized tooltips - if hover graph with brush, tooltips will not appear in this and other graphs. |
Is it still the only solution? |
Until it's solved in the library, you can avoid the issue by wrapping the brush in another chart and setting the same syncId to it. BTW, this demo helped me! |
omg, thank you |
@natBizitza thank you, this is a very elegant workaround. 🙏 Is anything done on this? The bug seems to be more than a year old. |
good solution!! thank you but, it is weird that not fix immediatly the bug. I think this bug is critical.. |
By default syncMethod uses the index to synchronize the charts, that's why when you use the brush to zoom in, you get different categories displayed. In order to be able to get the same category, even when you use the brush, you need to set |
Reproduction link
https://recharts.org/en-US/examples/SynchronizedLineChart
Steps to reproduce
What is expected?
I would expect that the 3 graphs displays the same part of the XAxis
What is actually happening?
Only the graph with the brush display the expected range of XAxis. The other graphs remain with the XAxis range on Page E, Page F, Page G.
The text was updated successfully, but these errors were encountered: