-
I am new to using Recharts and have been using the Complex Chart example to see if it may be a solution for a reporting app I am working on that needs 2 bars and a line graph in the same table with 3 y-axis. It seems that there may be something in the update to 2.12.6 that has changed how multiple Bar components sit on the x axis points. This is reflected in your storybook for the complex chart and also in this code sandbox. When I change to an earlier version (2.0.6), the bars are lined up correctly. See code sandbox with 2.0.6 here. Is there an update to my component I am missing to fix this issue? Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It looks like things have been like this since 2.2.0 - this isn't a new change. Looks like this is happening because of |
Beta Was this translation helpful? Give feedback.
-
Sheesh, totally missed that. I'm glad to see it was something easy -- thank you!! |
Beta Was this translation helpful? Give feedback.
It looks like things have been like this since 2.2.0 - this isn't a new change.
Looks like this is happening because of
scale="band"
on your XAxis. Remove that and the issue goes away