HarryStevens / swiftmap

A JavaScript library for making data-driven maps.
https://harrystevens.github.io/swiftmap/
MIT License
9 stars 0 forks source link

Giant scheme API overhaul #30

Closed HarryStevens closed 6 years ago

HarryStevens commented 6 years ago

Syntax should be scheme.style(attr, function, key); scheme.attr(attr, function, key);

The attribute is any valid CSS attribute, the function is the mapping function, and the key is the way to handle the values returned by the mapping function.

HarryStevens commented 6 years ago

It will also be necessary to change schemeSequential and schemeCategorical to schemeChoropleth. (fills subunits based on a scheme)