How to use the @nivo/axes.renderAxisToCanvas function in @nivo/axes

To help you get started, we’ve selected a few @nivo/axes 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 / packages / parallel-coordinates / src / ParallelCoordinatesCanvas.js View on Github external
variablesWithScale.map(variable => {
            renderAxisToCanvas(this.ctx, {
                axis: layout === 'horizontal' ? 'y' : 'x',
                scale: variable.scale,
                x: layout === 'horizontal' ? variablesScale(variable.key) : 0,
                y: layout === 'horizontal' ? 0 : variablesScale(variable.key),
                length: layout === 'horizontal' ? height : width,
                ticksPosition: axesTicksPosition,
                theme,
            })
        })
    }

@nivo/axes

<a href="https://nivo.rocks"><img alt="nivo" src="https://raw.githubusercontent.com/plouc/nivo/master/nivo.png" width="216" height="68"/></a>

MIT
Latest version published 4 months ago

Package Health Score

86 / 100
Full package analysis