Multiple YAxes #3041
Multiple YAxes
#3041
-
Is it possible to show multiple YAxes? I have 2 different types of data. I've tried to put 2 |
Beta Was this translation helpful? Give feedback.
Answered by
MattyKems87
Nov 7, 2022
Replies: 1 comment
-
Have you specified the yAxisId prop for your YAxes and your two cartesian graph components? Not sure if that makes a difference as I'm also new to recharts, but you give it a try. Give both your YAxes a yAxisId and set the same yAxisId on the corresponding cartesian components. Here's a composite chart I've set up using some samples which has two y axes:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
memee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you specified the yAxisId prop for your YAxes and your two cartesian graph components? Not sure if that makes a difference as I'm also new to recharts, but you give it a try. Give both your YAxes a yAxisId and set the same yAxisId on the corresponding cartesian components. Here's a composite chart I've set up using some samples which has two y axes: