Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
controlOptions: {
disabledValue: 'auto',
defaultValue: -1000,
min: -1000,
max: 0,
},
},
{
key: 'maxValue',
help: 'Maximum value.',
description: `
Maximum value, if 'auto',
will use max value from the provided data.
`,
required: false,
defaultValue: defaults.maxValue,
type: 'number | string',
controlType: 'switchableRange',
group: 'Base',
controlOptions: {
disabledValue: 'auto',
defaultValue: 1000,
min: 0,
max: 1000,
},
},
{
key: 'padding',
help: 'Padding between each bar (ratio).',
type: 'number',
required: false,
defaultValue: defaults.padding,