How to use the @nivo/heatmap.HeatMapDefaultProps.padding function in @nivo/heatmap

To help you get started, we’ve selected a few @nivo/heatmap 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 / components / charts / heatmap / props.js View on Github external
default: defaults.sizeVariation,
        type: '{number}',
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: 0,
            max: 1,
            step: 0.02,
        },
    },
    {
        key: 'padding',
        scopes: '*',
        description: 'Padding (px).',
        required: false,
        default: defaults.padding,
        type: '{number}',
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: 0,
            max: 36,
            unit: 'px',
        },
    },
    /*——————————————————————————————————————————————————————————————————————————

      Style

    ————————————————————————————————————————————————————————————————————————————*/
    {
        key: 'cellShape',
github plouc / nivo / website / src / data / components / heatmap / props.js View on Github external
required: false,
        defaultValue: defaults.sizeVariation,
        type: 'number',
        controlType: 'range',
        group: 'Base',
        controlOptions: {
            min: 0,
            max: 1,
            step: 0.02,
        },
    },
    {
        key: 'padding',
        help: 'Padding.',
        required: false,
        defaultValue: defaults.padding,
        type: 'number',
        controlType: 'range',
        group: 'Base',
        controlOptions: {
            min: 0,
            max: 36,
            unit: 'px',
        },
    },
    {
        key: 'width',
        enableControlForFlavors: ['api'],
        help: 'Chart width.',
        description: `
            not required if using
            \`\`.