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: 'colors',
group: 'Style',
help: 'Defines color range.',
type: 'string | Function | string[]',
required: false,
defaultValue: defaults.colors,
controlType: 'ordinalColors',
},
{
key: 'blendMode',
group: 'Style',
flavors: ['svg'],
help: 'Defines CSS mix-blend-mode property.',
description: `
Defines CSS \`mix-blend-mode\` property for nodes,
see
[MDN documentation](https://developer.mozilla.org/fr/docs/Web/CSS/mix-blend-mode).
`,
type: 'string',
required: false,
defaultValue: defaults.blendMode,
controlType: 'blendMode',
},
xScale: {
type: 'linear',
min: 0,
max: 'auto',
},
xFormat: d => `${d} kg`,
yScale: {
type: 'linear',
min: 0,
max: 'auto',
},
yFormat: d => `${d} cm`,
colors: ScatterPlotDefaultProps.colors,
blendMode: 'multiply',
nodeSize: ScatterPlotDefaultProps.nodeSize,
enableGridX: ScatterPlotDefaultProps.enableGridX,
enableGridY: ScatterPlotDefaultProps.enableGridY,
axisTop: {
enable: false,
orient: 'top',
tickSize: 5,
tickPadding: 5,
tickRotation: 0,
legend: '',
legendOffset: 36,
},
axisRight: {