How to use the @nivo/heatmap.HeatMapDefaultProps.maxValue 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
type: `{number|'auto'}`,
        controlType: 'switchableRange',
        controlGroup: 'Base',
        controlOptions: {
            disabledValue: 'auto',
            defaultValue: 0,
            min: -100,
            max: 100,
        },
    },
    {
        key: 'maxValue',
        scopes: '*',
        description: `Maximum value. If 'auto', will pick the highest value in the provided data set. Should be overriden if your data set does not contain desired higher bound value.`,
        required: false,
        default: defaults.maxValue,
        type: `{number|'auto'}`,
        controlType: 'switchableRange',
        controlGroup: 'Base',
        controlOptions: {
            disabledValue: 'auto',
            defaultValue: 100,
            min: -100,
            max: 100,
        },
    },
    {
        key: 'forceSquare',
        scopes: '*',
        description: 'Force square cells (width = height).',
        required: false,
        default: defaults.forceSquare,
github plouc / nivo / website / src / data / components / heatmap / props.js View on Github external
defaultValue: 0,
            min: -100,
            max: 100,
        },
    },
    {
        key: 'maxValue',
        help: 'Maximum value.',
        description: `
            Maximum value. If 'auto', will pick the highest value
            in the provided data set. Should be overriden
            if your data set does not contain desired
            higher bound value.
        `,
        required: false,
        defaultValue: defaults.maxValue,
        type: `number | 'auto'`,
        controlType: 'switchableRange',
        group: 'Base',
        controlOptions: {
            disabledValue: 'auto',
            defaultValue: 100,
            min: -100,
            max: 100,
        },
    },
    {
        key: 'forceSquare',
        help: 'Force square cells (width = height).',
        required: false,
        defaultValue: defaults.forceSquare,
        type: 'boolean',