chart-config
Object
default: {default settings}
mandatory: N/A
Object used to control behavior of chart, It has many options not all of them are mandatory but however one can use it to enhance the chart. If in any case the provided value does not match required type then default settings are used.
attribute
description
default
mandatory
label (String)
label or context text name on which pie chart is to be drawn must be from input object array
""
yes
prop (String)
property value to be considered for pie calculation
""
yes
radiusSize (Number/Decimal)
The size of the radius of the pie max to be 1, useful in adjusting the chart in case of huge labels
0.8
no
labelsInside (Boolean)
In case of true labels are draw inside the circle of pie/donught good for small chart
false
no
color (Array)
Array of color string size to be equal or greater than size of input data array
[ ]
no
disableHoverAnimation (Boolean)
on pie hover control animation enable/disable
false
no
hoverAnimationDuration (Number)
duration of animation on pie hover in milliseconds
1000
no
hoverRadius (Number/Decimal)
The point at which the chart should animate on hover if greater than 'outerRadius' chart animates outside if less animates inside
0.8
no
outerRadius (Number/Decimal)
outer radius of the pie should be less than 'radiusSize'
0.7
no
innerRadius (Number/Decimal)
inner radius of the pie if 0 behaves as a full pie chart else gives a feel of donught
0.4
no
cornerRadius (Number/Decimal)
corner radius of each pie
3
no
padding (Number/Decimal)
padding between each slice in chart
0.015
no
spanningLine (Number/Decimal)
The position of the polyline to be drawn for labels should be greater than 'outerRadius'
0.8
no
textPositionRadius (Number/Decimal)
The position of the labels outside chart make sense to be equal to outer radius always but can experiment
0.7
no