Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type: 'number',
required: false,
defaultValue: defaults.borderWidth,
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'borderColor',
description: `
How to compute border color,
[see dedicated documentation](self:/guides/colors).
`,
help: 'Method to compute layer border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
...defsProperties('Style'),
{
key: 'enableGridX',
help: 'Enable/disable x grid.',
type: 'boolean',
required: false,
defaultValue: defaults.enableGridX,
controlType: 'switch',
group: 'Grid & Axes',
},
{
key: 'enableGridY',
help: 'Enable/disable y grid.',
},
{
key: 'fillOpacity',
help: 'Layers fill opacity.',
type: 'number',
required: false,
defaultValue: defaults.fillOpacity,
controlType: 'opacity',
group: 'Style',
},
{
key: 'borderWidth',
help: 'Width of layer border.',
type: 'number',
required: false,
defaultValue: defaults.borderWidth,
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'borderColor',
description: `
How to compute border color,
[see dedicated documentation](self:/guides/colors).
`,
help: 'Method to compute layer border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
},
},
{
key: 'margin',
help: 'Chart margin.',
type: 'object',
required: false,
controlType: 'margin',
group: 'Base',
},
{
key: 'colors',
help: 'Defines how to compute line color.',
type: 'string | Function',
required: false,
defaultValue: defaults.colors,
controlType: 'ordinalColors',
group: 'Style',
},
{
key: 'fillOpacity',
help: 'Layers fill opacity.',
type: 'number',
required: false,
defaultValue: defaults.fillOpacity,
controlType: 'opacity',
group: 'Style',
},
{
key: 'borderWidth',
help: 'Width of layer border.',
type: 'number',
choices: stackOrderPropKeys.map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'curve',
description: `
Defines the curve factory to use
for the area generator.
`,
help: 'Curve interpolation.',
type: 'string',
required: false,
defaultValue: defaults.curve,
controlType: 'choices',
group: 'Base',
controlOptions: {
choices: areaCurvePropKeys.map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'width',
enableControlForFlavors: ['api'],
description: `
not required if using
\`\`.
`,
key: 'dotBorderWidth',
help: 'Width of the dots border.',
description:
'Width of the dots border, it also accepts a function which can be used to make it vary according to the associated datum.',
type: 'number | Function',
required: false,
defaultValue: defaults.dotBorderWidth,
controlType: 'lineWidth',
group: 'Dots',
},
{
key: 'dotBorderColor',
help: 'Method to compute dots border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.dotBorderColor,
controlType: 'inheritedColor',
group: 'Dots',
},
{
key: 'isInteractive',
flavors: ['svg'],
help: 'Enable/disable interactivity.',
type: 'boolean',
required: false,
defaultValue: defaults.isInteractive,
controlType: 'switch',
group: 'Interactivity',
},
{
key: 'enableStackTooltip',
flavors: ['svg'],
key: 'dotColor',
help: 'Method to compute dots color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.dotColor,
controlType: 'inheritedColor',
group: 'Dots',
},
{
key: 'dotBorderWidth',
help: 'Width of the dots border.',
description:
'Width of the dots border, it also accepts a function which can be used to make it vary according to the associated datum.',
type: 'number | Function',
required: false,
defaultValue: defaults.dotBorderWidth,
controlType: 'lineWidth',
group: 'Dots',
},
{
key: 'dotBorderColor',
help: 'Method to compute dots border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.dotBorderColor,
controlType: 'inheritedColor',
group: 'Dots',
},
{
key: 'isInteractive',
flavors: ['svg'],
help: 'Enable/disable interactivity.',
required: false,
defaultValue: defaults.dotSize,
controlType: 'range',
group: 'Dots',
controlOptions: {
unit: 'px',
min: 2,
max: 20,
},
},
{
key: 'dotColor',
help: 'Method to compute dots color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.dotColor,
controlType: 'inheritedColor',
group: 'Dots',
},
{
key: 'dotBorderWidth',
help: 'Width of the dots border.',
description:
'Width of the dots border, it also accepts a function which can be used to make it vary according to the associated datum.',
type: 'number | Function',
required: false,
defaultValue: defaults.dotBorderWidth,
controlType: 'lineWidth',
group: 'Dots',
},
{
key: 'dotBorderColor',
{
key: 'renderDot',
group: 'Dots',
flavors: ['svg'],
help: 'Custom rendering function for dots.',
type: 'Function',
required: false,
},
{
key: 'dotSize',
help: 'Size of the dots',
description:
'Size of the dots, it also accepts a function which can be used to make it vary according to the associated datum.',
type: 'number | Function',
required: false,
defaultValue: defaults.dotSize,
controlType: 'range',
group: 'Dots',
controlOptions: {
unit: 'px',
min: 2,
max: 20,
},
},
{
key: 'dotColor',
help: 'Method to compute dots color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.dotColor,
controlType: 'inheritedColor',
group: 'Dots',
{
key: 'enableGridY',
help: 'Enable/disable y grid.',
type: 'boolean',
required: false,
defaultValue: defaults.enableGridY,
controlType: 'switch',
group: 'Grid & Axes',
},
...axesProperties(),
{
key: 'enableDots',
help: 'Enable/disable dots.',
type: 'boolean',
required: false,
defaultValue: defaults.enableDots,
controlType: 'switch',
group: 'Dots',
},
{
key: 'renderDot',
group: 'Dots',
flavors: ['svg'],
help: 'Custom rendering function for dots.',
type: 'Function',
required: false,
},
{
key: 'dotSize',
help: 'Size of the dots',
description:
'Size of the dots, it also accepts a function which can be used to make it vary according to the associated datum.',
[see dedicated documentation](self:/guides/colors).
`,
help: 'Method to compute layer border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
...defsProperties('Style'),
{
key: 'enableGridX',
help: 'Enable/disable x grid.',
type: 'boolean',
required: false,
defaultValue: defaults.enableGridX,
controlType: 'switch',
group: 'Grid & Axes',
},
{
key: 'enableGridY',
help: 'Enable/disable y grid.',
type: 'boolean',
required: false,
defaultValue: defaults.enableGridY,
controlType: 'switch',
group: 'Grid & Axes',
},
...axesProperties(),
{
key: 'enableDots',
help: 'Enable/disable dots.',