'Is it possible to make VictoryPie Slices overlap on each other?
I'm using the Victory Pie in my React Native app and it renders fine without any issues, but my requirement is that each slice within the pie chart should be have circular corners and overlap on each other like in the image:
I'm able to get the circular corners by applying the attribute:
cornerRadius
but is it possible to make them overlap like in the picture or should I create a custom component?
Solution 1:[1]
This answer is quite late, but after a tone of searching the only solution I could find to this was to create a second <VictoryPie>
graph and have it resting directly underneath the graph you are wanting the background color for.
This solution only worked for having a single background + color and not multiple like you required in your example though.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DᴀʀᴛʜVᴀᴅᴇʀ |