How to use the @nivo/voronoi.VoronoiDefaultProps.yDomain 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
},
    {
        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
            \`\`.
        `,
        help: 'Chart width.',
        type: 'number',
        required: true,
        controlType: 'range',
        group: 'Base',
        controlOptions: {
            unit: 'px',
            min: 100,
github plouc / nivo / website / src / components / charts / voronoi / props.js View on Github external
},
    {
        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;
                <code>&lt;ResponsiveVoronoi&nbsp;/&gt;</code>.
            </span>
        ),
        help: 'Chart width.',
        type: '{number}',
        required: true,
        controlType: 'range',
        controlGroup: 'Base',