Background color for not filled bar #717
-
It is possible to change the background color for the part of the bar that is not filled? Something like this? Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
This is not currently supported, but I can suggest you a hacky solution for now. Use a Stacked bar chart instead of a normal Bar chart (replace
This will render a stacked bar chart where each stack reaches the full height with the base section representing the actual value. Give it a try and ping here if it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Hi @carlosriveroib Next, you can make the verticalLines rounded using |
Beta Was this translation helpful? Give feedback.
-
@carlosriveroib Try setting the height of the vertical lines using the |
Beta Was this translation helpful? Give feedback.
Hi @carlosriveroib
This can be achieved using the
showVerticalLines
prop and setting theverticalLinesThickness
equal to the bars' thickness.The default bar thickness is 30, so you can set
verticalLinesThickness={30}
.Next, you can make the verticalLines rounded using
verticalLinesStrokeLinecap='round'
The
verticalLinesStrokeLinecap
is available prop from version1.4.22
onwards.