Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
key: 'labelFormat',
group: 'Labels',
help: 'How to format labels.',
description: `
How to format labels,
[see d3.format() documentation](https://github.com/d3/d3-format/blob/master/README.md#format).
`,
type: 'string | Function',
},
{
key: 'labelSkipWidth',
help: 'Skip label if bar width is lower than provided value, ignored if 0.',
type: 'number',
required: false,
defaultValue: defaults.labelSkipWidth,
controlType: 'range',
group: 'Labels',
controlOptions: {
unit: 'px',
min: 0,
max: 36,
},
},
{
key: 'labelSkipHeight',
help: 'Skip label if bar height is lower than provided value, ignored if 0.',
type: 'number',
required: false,
defaultValue: defaults.labelSkipHeight,
controlType: 'range',
group: 'Labels',