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.curve,
controlType: 'choices',
group: 'Style',
controlOptions: {
choices: lineCurvePropKeys.map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'colors',
help: 'Defines color range.',
type: 'string | Function | string[]',
required: false,
defaultValue: defaults.colors,
controlType: 'ordinalColors',
group: 'Style',
},
{
key: 'lineWidth',
help: 'Line width.',
type: 'number',
required: false,
defaultValue: defaults.lineWidth,
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'enableArea',
help: 'Enable/disable area below each line.',
type: 'boolean',