d3 / d3-contour

Compute contour polygons using marching squares.
https://d3js.org/d3-contour
ISC License
494 stars 63 forks source link

Add density weight parameter. #29

Closed jheer closed 6 years ago

jheer commented 6 years ago

Adds a weight parameter (default 1) to enable density estimation for pre-aggregated data, addressing #28.

This PR is nearly identical to #18, but includes documentation updates and uses the terminology "weight" instead of "count", as the value may not necessarily be an integer. Feel free to close if you have a different preferred terminology. In any case, there appears to be sustained interest in this feature, including from Vega users.

jheer commented 6 years ago

I added the requested number coercions. Hopefully we're good to go!