Y-axis customised ticks/label to use pound/euro symbol #3753
-
I have been using this example (https://recharts.org/en-US/examples/ComposedChartWithAxisLabels) as reference this is the label I have so far but It is not doing anything
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
if anyone could help me with this it would be greatly appreciated + figure out what the correct types for the label would be a god send |
Beta Was this translation helpful? Give feedback.
-
Hey there, this will be easier with the Please see https://codesandbox.io/s/composed-chart-with-axis-label-forked-28yq7f?file=/src/App.tsx as an example <YAxis
label={{ value: "Index", angle: -90, position: "insideLeft" }}
tickFormatter={(value) => `€${value}`}
/> I just used the symbol for simplicity, but you can add your call to |
Beta Was this translation helpful? Give feedback.
Hey there, this will be easier with the
tickFormatter
function on the AxisPlease see https://codesandbox.io/s/composed-chart-with-axis-label-forked-28yq7f?file=/src/App.tsx as an example
I just used the symbol for simplicity, but you can add your call to
Intl.NumberFormat
in there