How to use the @nivo/chord.ChordDefaultProps.labelTextColor function in @nivo/chord

To help you get started, we’ve selected a few @nivo/chord examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plouc / nivo / website / src / data / components / chord / props.js View on Github external
min: -180,
            max: 180,
            step: 5,
        },
    },
    {
        key: 'labelTextColor',
        help: 'Labels color.',
        description: `
            How to compute label text color,
            [see dedicated documentation](self:/guides/colors).
        `,
        help: 'Method to compute label text color.',
        type: 'string | object | Function',
        required: false,
        defaultValue: defaults.labelTextColor,
        controlType: 'inheritedColor',
        group: 'Labels',
    },
    {
        key: 'layers',
        group: 'Customization',
        help: 'Defines the order of layers and add custom layers.',
        description: `
            You can also use this to insert extra layers
            to the chart, the extra layer must be a function.
            
            The layer function which will receive the chart's
            context & computed data and must return a valid SVG element
            for the \`Chord\` component.

            When using the canvas implementation, the function