Description Usage Arguments Examples
Note we always try the destination first, as that is the optimal shrink.
1 | shrink.towards(destination)
|
destination |
the value we want to shrink towards. |
1 2 3 4 5 6 7 8 | shrink.towards (0) (100)
# [0,50,75,88,94,97,99]
shrink.towards(500)(1000)
# [500,750,875,938,969,985,993,997,999]
shrink.towards (-50) (-26)
# [-50,-38,-32,-29,-27]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.