PolylinearScale
( Basics.Float, Basics.Float )
The domain and range
polylinearScale : List DomainAndRange -> Basics.Float -> Maybe Basics.Float
Create a polylinear scale. Map from the domain to the range.
scale = polylinearScale [(0, 0), (100, 50), (300, 100)]
scale 100 == 50
scale 150 == 62.5