Invert scale function
Yes, there is, and it's aptly named invert
.
console.log(scale.invert(10)); //Returns 100
console.log(scale.invert(180)); //Returns 300
console.log(scale.invert(350)); //Returns 500
Yes, there is, and it's aptly named invert
.
console.log(scale.invert(10)); //Returns 100
console.log(scale.invert(180)); //Returns 300
console.log(scale.invert(350)); //Returns 500