Responsive label
in AreaChart
#3146
Answered
by
ckifer
201flaviosilva
asked this question in
Q&A
-
Hey there, I have a problem with my chart, the axis labels are not being positioned in the right place: The <XAxis
label="DATE"
name="date"
dataKey="date"
padding={{ left: 42, right: 42 }}
/>
<YAxis label="MINUTES" name="minutes" dataKey="minutes" /> Code: https://bitbucket.org/201flaviosilva-labs/q-recharts-areachart-responsive-label/ |
Beta Was this translation helpful? Give feedback.
Answered by
ckifer
Jan 6, 2023
Replies: 1 comment 1 reply
-
You can adjust the https://codesandbox.io/s/recharts-areachart-label-forked-58er5g?file=/src/App.js label={{
value: "MINUTES",
angle: -90,
position: "insideLeft"
}} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ckifer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @201flaviosilva
You can adjust the
Label
by defining it with an object rather than giving a value directlyhttps://codesandbox.io/s/recharts-areachart-label-forked-58er5g?file=/src/App.js