block by herrstucki 5403383

Polylinear Time Scale

Full Screen

When creating a polylinear time scale, the tricky part is to know to which value in the range the intermediate dates should map.

Let’s say we want to “zoom in” on 4 particular days and make them appear with the size of 10 days each. Because these days now take up more space (36 or (factor - 1) * n), we need to create a linear time scale where the domain ends at 36 days later than we want to show. This scale is then used to determine the intermediary range values of the polylinear scale.

index.html