Scales an input percentage value to an output range If you have an input percentage (0-1), scalePercent maps it to an output range of outMin-outMax.
scalePercent
outMin
outMax
import { scalePercent } from 'https://unpkg.com/ixfx/dist/data.js';scalePercent(0.5, 10, 20); // 15 Copy
import { scalePercent } from 'https://unpkg.com/ixfx/dist/data.js';scalePercent(0.5, 10, 20); // 15
scalerPercent Returns a function
Value to scale
Minimum for output
Maximum for output
Scales an input percentage value to an output range If you have an input percentage (0-1),
scalePercent
maps it to an output range ofoutMin
-outMax
.See
scalerPercent Returns a function