-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Labels
Description
Here's the shortest way I saw at present to represent a scale of textures:
http://codepen.io/anon/pen/wBRwvj
Perhaps a textures.scale
, necessarily ordinal, could make this easier:
scale = textures.scale.lines()
.domain(data)
.strokeWidth(function(d){ return d.value; });
svg.call(scale.init()) // compute all the textures needed, insert the defs
svg.selectAll("circle")
.data(data)
.enter()
.style({fill: scale})