Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
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: {
enable: false,
orient: 'right',
tickSize: 5,
tickPadding: 5,
tickRotation: 0,
legend: '',
group: 'Grid & Axes',
},
{
key: 'gridXValues',
group: 'Grid & Axes',
help: 'Specify values to use for vertical grid lines.',
type: 'Array',
required: false,
},
{
key: 'enableGridY',
group: 'Grid & Axes',
help: 'Enable/disable y grid.',
type: 'boolean',
required: false,
defaultValue: defaults.enableGridY,
controlType: 'switch',
},
{
key: 'gridYValues',
group: 'Grid & Axes',
help: 'Specify values to use for horizontal grid lines.',
type: 'Array',
required: false,
},
...axesProperties(),
{
key: 'isInteractive',
help: 'Enable/disable interactivity.',
type: 'boolean',
required: false,
defaultValue: defaults.isInteractive,