Inverted Y Axis #512
-
I'm hoping someone can point me in the right direction, is there a built in way to invert different axes, similar to |
Beta Was this translation helpful? Give feedback.
Answered by
Spookywooky3
Feb 24, 2025
Replies: 1 comment
-
Nevermind, was any easy fix I just had to educate myself on how domains work lol. <CartesianChart
data={stops}
xKey='x'
yKeys={['y']}
axisOptions={{ font }}
domain={{
y: [Math.max(...stops.map((stop) => stop.y)), 0],
}}>
{({ points }) => (
<Line
points={points.y}
color='#188a8d'
strokeWidth={2}
/>
)}
</CartesianChart> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Spookywooky3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, was any easy fix I just had to educate myself on how domains work lol.
For anyone else who is looking for something similar.