Fix points layer

This commit is contained in:
Tom MacWright
2016-09-06 11:02:13 -04:00
parent 20962074ba
commit fcb2c3df58
+7 -1
View File
@@ -22,7 +22,13 @@ export function Points(projection, context) {
points.sort(sortY);
var groups = surface.selectAll('.layer-hit').selectAll('g.point')
var layer = surface.selectAll('.layer-hit')
.data([0]);
layer = layer.enter().append('g').attr('class', 'layer-hit')
.merge(layer);
var groups = layer.selectAll('g.point')
.filter(filter)
.data(points, Entity.key);