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,
            })
        })
    }