How to have Labels for Bar Chart on the Bar End ? #4373
Replies: 1 comment
-
actually solved it easlily with <Bar
dataKey={option.valueKey}
fill={option.fill}
legendType="line"
barSize={12}
activeBar={<Rectangle fill={option.fill} stroke={option.stroke} />}
>
{option?.barLabel ? (
<LabelList
position="right"
dataKey={option.valueKey}
formatter={(value: string) => `${findRatio(value, totalAmount)}%`}
/>
) : (
""
)}
</Bar> |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to have the Horizontal Bar labels on the top of the each bar. So Bar I got below results. How can I make those labels appear at the top of the each bar dynamically ?
TIA
Beta Was this translation helpful? Give feedback.
All reactions