How to use the @nivo/scatterplot.ScatterPlotCanvasDefaultProps.colors function in @nivo/scatterplot

To help you get started, we’ve selected a few @nivo/scatterplot 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 / pages / scatterplot / canvas.js View on Github external
type: 'linear',
        min: 0,
        max: 'auto',
    },
    xFormat: d => `${d} kg`,
    yScale: {
        type: 'linear',
        min: 0,
        max: 'auto',
    },
    yFormat: d => `${d} cm`,

    pixelRatio:
        typeof window !== 'undefined' && window.devicePixelRatio ? window.devicePixelRatio : 1,

    colors: ScatterPlotCanvasDefaultProps.colors,

    nodeSize: 5,

    axisTop: {
        enable: false,
        orient: 'top',
        tickSize: 5,
        tickPadding: 5,
        tickRotation: 0,
        legend: '',
        legendOffset: 36,
    },
    axisRight: {
        enable: false,
        orient: 'right',
        tickSize: 5,