Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
key: 'spacing',
group: 'Base',
type: 'number',
defaultValue: defaults.spacing,
controlType: 'range',
controlOptions: {
min: 0,
max: 32,
},
},
{
key: 'xPadding',
group: 'Base',
type: 'number',
defaultValue: defaults.xPadding,
controlType: 'range',
controlOptions: {
min: 0,
max: 1,
step: 0.05,
},
},
{
key: 'colors',
group: 'Style',
type: 'string | Function | string[]',
help: 'Defines color range.',
required: false,
defaultValue: defaults.colors,
controlType: 'ordinalColors',
},
return series
}
const initialProperties = {
margin: {
top: 40,
right: 100,
bottom: 40,
left: 100,
},
align: AreaBumpDefaultProps.align,
interpolation: AreaBumpDefaultProps.interpolation,
spacing: 8,
xPadding: AreaBumpDefaultProps.xPadding,
colors: { scheme: 'nivo' },
blendMode: 'multiply',
fillOpacity: AreaBumpDefaultProps.fillOpacity,
activeFillOpacity: AreaBumpDefaultProps.activeFillOpacity,
inactiveFillOpacity: AreaBumpDefaultProps.inactiveFillOpacity,
borderWidth: AreaBumpDefaultProps.borderWidth,
activeBorderWidth: AreaBumpDefaultProps.activeBorderWidth,
inactiveBorderWidth: AreaBumpDefaultProps.inactiveBorderWidth,
borderColor: AreaBumpDefaultProps.borderColor,
borderOpacity: AreaBumpDefaultProps.borderOpacity,
activeBorderOpacity: AreaBumpDefaultProps.activeBorderOpacity,
inactiveBorderOpacity: AreaBumpDefaultProps.inactiveBorderOpacity,
startLabel: 'id',
startLabelPadding: AreaBumpDefaultProps.startLabelPadding,