Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
defaultValue: defaults.endAngle,
controlType: 'angle',
group: 'Base',
controlOptions: {
unit: '°',
min: -360,
max: 360,
step: 5,
},
},
{
key: 'fit',
help: `If 'true', pie will be omptimized to occupy more space when using partial pie.`,
type: 'boolean',
required: false,
defaultValue: defaults.fit,
controlType: 'switch',
group: 'Base',
},
{
key: 'innerRadius',
help: `Donut chart if greater than 0. Value should be between 0~1 as it's a ratio from original radius.`,
type: 'number',
required: false,
defaultValue: defaults.innerRadius,
controlType: 'range',
group: 'Base',
controlOptions: {
min: 0,
max: 0.95,
step: 0.05,
},