Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_scaleConsSelector(scaleType, scaleCfg) {
switch (scaleType) {
case 'Linear':
return new Scale.Linear(scaleCfg);
case 'Log':
return new Scale.Log(scaleCfg);
case 'Pow':
return new Scale.Pow(scaleCfg);
default:
return new Scale.Linear(scaleCfg);
}
}
_createScale(sourceData) {