Distribution
Usage
<Box>
<Distribution
heading="Fruit shares"
items={[
{ item: 'Bananas', percentage: 37 },
{ item: 'Apples', percentage: 22 },
{ item: 'Cherries', percentage: 15 },
{ item: 'Oranges', percentage: 12 },
{ item: 'Grapefruits', percentage: 12 },
{ item: 'Rest', percentage: 2 },
]}
/>
</Box>Demonstration

Props
colors
TYPE
DEFAULT VALUE
showLegend
TYPE
DEFAULT VALUE
heading
TYPE
DEFAULT VALUE
itemTitle({ item, percentage, index })
TYPE
DEFAULT VALUE
renderLegendItem({ color, index, item, percentage })
TYPE
DEFAULT VALUE
renderFullLegendItem({ bullet, color, index, item, percentage })
TYPE
DEFAULT VALUE
items
TYPE
DEFAULT VALUE
Last updated
Was this helpful?
