Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
required: false,
defaultValue: defaults.fillOpacity,
controlType: 'opacity',
group: 'Style',
},
{
key: 'blendMode',
flavors: ['svg'],
help: 'Defines CSS mix-blend-mode property.',
description: `
Defines CSS \`mix-blend-mode\` property, see
[MDN documentation](https://developer.mozilla.org/fr/docs/Web/CSS/mix-blend-mode).
`,
type: 'string',
required: false,
defaultValue: defaults.blendMode,
controlType: 'blendMode',
group: 'Style',
},
{
key: 'borderWidth',
help: 'Shape border width.',
type: 'number',
required: false,
defaultValue: defaults.borderWidth,
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'borderColor',
help: 'Method to compute border color.',
type: 'string | object | Function',
},
{
key: 'borderWidth',
help: 'Shape border width.',
type: 'number',
required: false,
defaultValue: defaults.borderWidth,
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'borderColor',
help: 'Method to compute border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
{
key: 'gridLevels',
help: 'Number of levels to display for grid',
type: 'number',
required: false,
defaultValue: defaults.gridLevels,
controlType: 'range',
group: 'Grid',
controlOptions: {
min: 1,
max: 12,
},
},
description: `
Defines CSS \`mix-blend-mode\` property, see
[MDN documentation](https://developer.mozilla.org/fr/docs/Web/CSS/mix-blend-mode).
`,
type: 'string',
required: false,
defaultValue: defaults.blendMode,
controlType: 'blendMode',
group: 'Style',
},
{
key: 'borderWidth',
help: 'Shape border width.',
type: 'number',
required: false,
defaultValue: defaults.borderWidth,
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'borderColor',
help: 'Method to compute border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
{
key: 'gridLevels',
help: 'Number of levels to display for grid',
type: 'number',
},
},
{
key: 'margin',
help: 'Chart margin.',
type: 'object',
required: false,
controlType: 'margin',
group: 'Base',
},
{
key: 'colors',
help: 'Defines how to compute slice color.',
type: 'string | Function | string[]',
required: false,
defaultValue: defaults.colors,
controlType: 'ordinalColors',
group: 'Style',
},
{
key: 'fillOpacity',
help: 'Shape fill opacity.',
type: 'number',
required: false,
defaultValue: defaults.fillOpacity,
controlType: 'opacity',
group: 'Style',
},
{
key: 'blendMode',
flavors: ['svg'],
help: 'Defines CSS mix-blend-mode property.',
disabledValue: 'auto',
defaultValue: 200,
min: 0,
max: 1000,
},
},
{
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: 'Base',
controlOptions: {
choices: closedCurvePropKeys.map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'width',
enableControlForFlavors: ['api'],
help: 'Chart width.',
description: `
not required if using
\`\`.
required: false,
defaultValue: defaults.gridLabelOffset,
controlType: 'range',
group: 'Grid',
controlOptions: {
unit: 'px',
min: 0,
max: 60,
},
},
{
key: 'enableDots',
help: 'Enable/disable dots.',
type: 'boolean',
required: false,
defaultValue: defaults.enableDots,
controlType: 'switch',
group: 'Dots',
},
{
key: 'dotSymbol',
group: 'Dots',
help: 'Overrides default dot circle.',
description: `
Overrides default dot circle.
The function will receive \`size\`,
\`color\`, \`borderWidth\` and \`borderColor\`
props and must return a valid SVG element.
`,
type: 'Function',
required: false,
},
},
{
key: 'colors',
help: 'Defines how to compute slice color.',
type: 'string | Function | string[]',
required: false,
defaultValue: defaults.colors,
controlType: 'ordinalColors',
group: 'Style',
},
{
key: 'fillOpacity',
help: 'Shape fill opacity.',
type: 'number',
required: false,
defaultValue: defaults.fillOpacity,
controlType: 'opacity',
group: 'Style',
},
{
key: 'blendMode',
flavors: ['svg'],
help: 'Defines CSS mix-blend-mode property.',
description: `
Defines CSS \`mix-blend-mode\` property, see
[MDN documentation](https://developer.mozilla.org/fr/docs/Web/CSS/mix-blend-mode).
`,
type: 'string',
required: false,
defaultValue: defaults.blendMode,
controlType: 'blendMode',
group: 'Style',
anchor: 'start' | 'middle' | 'end'
# angle in degrees
angle: number
}
\`\`\`
The component will be wrapped inside
a \`g\` element **already positioned**
where the default label would have been placed.
`,
},
{
key: 'gridLabelOffset',
help: 'Label offset from outer radius.',
type: 'number',
required: false,
defaultValue: defaults.gridLabelOffset,
controlType: 'range',
group: 'Grid',
controlOptions: {
unit: 'px',
min: 0,
max: 60,
},
},
{
key: 'enableDots',
help: 'Enable/disable dots.',
type: 'boolean',
required: false,
defaultValue: defaults.enableDots,
controlType: 'switch',
group: 'Dots',
},
{
key: 'borderColor',
help: 'Method to compute border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
{
key: 'gridLevels',
help: 'Number of levels to display for grid',
type: 'number',
required: false,
defaultValue: defaults.gridLevels,
controlType: 'range',
group: 'Grid',
controlOptions: {
min: 1,
max: 12,
},
},
{
key: 'gridShape',
help: 'Determine shape of the grid.',
type: 'string',
required: false,
defaultValue: defaults.gridShape,
controlType: 'choices',
group: 'Grid',
controlOptions: {
type: 'number',
required: false,
defaultValue: defaults.gridLevels,
controlType: 'range',
group: 'Grid',
controlOptions: {
min: 1,
max: 12,
},
},
{
key: 'gridShape',
help: 'Determine shape of the grid.',
type: 'string',
required: false,
defaultValue: defaults.gridShape,
controlType: 'choices',
group: 'Grid',
controlOptions: {
choices: [
{ label: 'circular', value: 'circular' },
{ label: 'linear', value: 'linear' },
],
},
},
{
key: 'gridLabel',
type: 'Function',
group: 'Grid',
help: 'Grid label.',
description: `
An optional function to override label rendering.