How to display bar chart background like display in following image #904
-
|
Beta Was this translation helpful? Give feedback.
Answered by
ak-spotter
Nov 12, 2024
Replies: 1 comment
-
Hi @AbhishekMuknak This can be achieved using the Here's an example- <BarChart
data={[{ value: 5 }, { value: 3 }, {value:8}]}
barWidth={15}
frontColor={'navy'}
roundedTop
showVerticalLines
verticalLinesThickness={15}
verticalLinesShift={20}
verticalLinesStrokeLinecap="round"
/> The output of above code is- |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Abhinandan-Kushwaha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @AbhishekMuknak This can be achieved using the
showVerticalLines
andverticalLinesThickness
props.If the vertical lines are not aligned with the bars, you can use the
verticalLinesShift
prop. The color of vertical lines is gray by default which can be changed using theverticalLinesColor
prop.Here's an example-
The output of above code is-