Replies: 1 comment
-
Here is my temporary solution, but of course it breaks the ts since the formatCurrency returns string <CartesianChart>
{({ points, chartBounds }) => {
const formattedPoints = points.total_paid.map((point) => ({
...point,
yValue: formatCurrency(point.yValue),
}));
return (
<Bar
// @ts-ignore formatted yValue
points={formattedPoints}
...
labels={{
font,
color: labelColor,
position: labelPosition,
}}
>
<LinearGradient ... />
</Bar>
);
}}
</CartesianChart> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So i was following this bar chart example
how exactly do i format the bar labels?
Beta Was this translation helpful? Give feedback.
All reactions