Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const computeScale = (scaleSpec, dimensions, data) => {
if (scaleSpec.type === 'linear') {
return linearScale(scaleSpec, dimensions, data)
} else if (scaleSpec.type === 'point') {
return pointScale(scaleSpec, dimensions, data)
} else if (scaleSpec.type === 'time') {
return timeScale(scaleSpec, dimensions, data)
}
}