@pcgnpm/pie-chart
v1.0.0
Published
Display pie chart
Downloads
1
Readme
#pie-chart
Usage
Simple pie chart with default currency format
<PieChart label="Mark's" data={[ {x: 1, y: 129069, dataLabel: 'Rick Murphy'}, {x: 2, y: 51596, dataLabel: 'Kathy Kimbers'}, {x: 3, y: 7961, dataLabel: 'Twaine Wayne'}, {x: 4, y: 5114, dataLabel: 'Zachary Newbs'}, {x: 5, y: 4806, dataLabel: 'Steve Smith'}, {x: 6, y: 4468, dataLabel: 'Peter Carillo'}, {x: 7, y: 1109, dataLabel: 'Mackenzie'}, ]} cutOff={3} showLegend={true} size={340} supressRest={true} labelFormatType="currency" labelFormatOptions={{ symbol: '$', thousand: ',', precision: 0, format: '%s%v', }} />
Simple pie chart with default number format
<PieChart label="Mark's" data={[ {x: 1, y: 129069, dataLabel: 'Rick Murphy'}, {x: 2, y: 51596, dataLabel: 'Kathy Kimbers'}, {x: 3, y: 7961, dataLabel: 'Twaine Wayne'}, {x: 4, y: 5114, dataLabel: 'Zachary Newbs'}, {x: 5, y: 4806, dataLabel: 'Steve Smith'}, {x: 6, y: 4468, dataLabel: 'Peter Carillo'}, {x: 7, y: 1109, dataLabel: 'Mackenzie'}, ]} cutOff={3} showLegend={true} size={340} supressRest={true} labelFormatType="number" labelFormatOptions={{ thousand: ',', precision: 0, }} />