block by hugolpz 6c9dae6ca2e4bb7d24ff

WikiAtlas ramp (beta)

Full Screen

This gist is a starting point to code a function buiding wikiatlas keys. It also gather helpful resources to learn and code further. Collaborative and versionned coding, fork, can be done on Codio.

We dream of…

Ideally, the function should take as input :

to then build a set of keys which manage both positive and negative altitudes,

Current code

Two different approches are implemented. One use a threshold scale, in the style of Ford Fessenden’s map of police stops involving force. A linear scale is used to set the x-position of each colored rectangle in the key. There is one rectangle per color in the threshold scale’s range, and one tick per value in the threshold scale’s domain. The linear scale’s domain sets the implied extent of the key, here spanning 0 to 100%. Explore D3’s ordinal scales may be productive.

Tutorial

Official

License

Public domain.

index.html