Is it possible to align synchronized charts? (AreaChart and BarChart) #4567
Closed
FranciscoBraaz
started this conversation in
General
Replies: 2 comments
-
There is nothing internal to recharts that synchronizes axes or aligns the synchronized charts. The only things that get synced are
Things that could be done to make it seem like this is happening: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Got it, thanks for the answer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using Recharts to build two charts that need to be synchronized. Currently they look like this:
I need the x-axes to be aligned. Like this:
Searching here on the forum I found this issue:
1-) #1616
I tried to reproduce the stackoverflow answer, but I didn't get the expected result (the first and/or last bar are cut). Here is the example:
https://codesandbox.io/p/sandbox/synchronized-line-charts-forked-v5j979
Beta Was this translation helpful? Give feedback.
All reactions