Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
key: 'margin',
help: 'Chart margin.',
type: 'object',
required: false,
controlType: 'margin',
group: 'Base',
},
{
key: 'curve',
help: 'Curve interpolation.',
description: `
Defines the curve factory to use for the line generator.
`,
type: 'string',
required: false,
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',