How to use the @nivo/heatmap.HeatMapDefaultProps.cellBorderColor 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
max: 10,
        },
    },
    {
        key: 'cellBorderColor',
        scopes: '*',
        description: (
            <span>
                how to compute cell border color,{' '}
                see dedicated documentation.
            </span>
        ),
        help: 'Method to compute cell border color.',
        type: '{string|Function}',
        required: false,
        default: defaults.cellBorderColor,
        controlType: 'color',
        controlGroup: 'Style',
        controlOptions: {
            withCustomColor: true,
        },
    },
    /*——————————————————————————————————————————————————————————————————————————

      Labels

    ————————————————————————————————————————————————————————————————————————————*/
    {
        key: 'enableLabels',
        scopes: '*',
        description: 'Enable/disable labels.',
        type: '{boolean}',
github plouc / nivo / website / src / data / components / heatmap / props.js View on Github external
required: false,
        defaultValue: defaults.cellBorderWidth,
        type: 'number',
        controlType: 'lineWidth',
        group: 'Style',
    },
    {
        key: 'cellBorderColor',
        help: 'Method to compute cell border color.',
        description: `
            how to compute cell border color,
            [see dedicated documentation](self:/guides/colors).
        `,
        type: 'string | object | Function',
        required: false,
        defaultValue: defaults.cellBorderColor,
        controlType: 'inheritedColor',
        group: 'Style',
    },
    {
        key: 'enableLabels',
        help: 'Enable/disable labels.',
        type: 'boolean',
        required: false,
        defaultValue: defaults.enableLabels,
        controlType: 'switch',
        group: 'Labels',
    },
    {
        key: 'labelTextColor',
        help: 'Method to compute label text color.',
        description: `