How to use the @nivo/voronoi.VoronoiDefaultProps.xDomain function in @nivo/voronoi

To help you get started, we’ve selected a few @nivo/voronoi 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 / voronoi / props.js View on Github external
id: string | number,
                x:  number,
                y:  number
            }>
            \`\`\`
        `,
        type: 'object[]',
        required: true,
    },
    {
        key: 'xDomain',
        group: 'Base',
        help: 'Defines the x values domain.',
        type: '[number, number]',
        required: false,
        defaultValue: defaults.xDomain,
    },
    {
        key: 'yDomain',
        group: 'Base',
        help: 'Defines the y values domain.',
        type: '[number, number]',
        required: false,
        defaultValue: defaults.yDomain,
    },
    {
        key: 'width',
        enableControlForFlavors: ['api'],
        description: `
            not required if using
            \`\`.
        `,
github plouc / nivo / website / src / components / charts / voronoi / props.js View on Github external
y:  {number}
                            }>
                        `}
                
            
        ),
        type: '{Object}',
        required: true,
    },
    {
        key: 'xDomain',
        scopes: '*',
        description: 'Defines the x values domain.',
        type: '{[number, number]}',
        required: false,
        default: defaults.xDomain,
    },
    {
        key: 'yDomain',
        scopes: '*',
        description: 'Defines the y values domain.',
        type: '{[number, number]}',
        required: false,
        default: defaults.yDomain,
    },
    {
        key: 'width',
        scopes: ['api'],
        docScopes: '*',
        description: (
            <span>
                not required if using&nbsp;</span>