Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
key: 'tooltip',
flavors: ['svg', 'canvas'],
group: 'Interactivity',
help: `Custom point tooltip`,
type: 'Function',
required: false,
},
{
key: 'enableSlices',
group: 'Interactivity',
flavors: ['svg'],
help: `Enable/disable slices tooltip for x or y axis, automatically disable mesh.`,
type: `'x' | 'y' | false`,
required: false,
defaultValue: defaults.enableSlicesTooltip,
controlType: 'choices',
controlOptions: {
choices: [
{
label: 'false',
value: false,
},
{
label: 'x',
value: 'x',
},
{
label: 'y',
value: 'y',
},
],