Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
})
})
}