Closed sirallen closed 7 years ago
Thanks! Just looking at the change, I imagine it works.
It’s not immediately clear why d3.select(el).select('svg')
is different than svg
, so maybe we can give the legend its own SVG group and name it appropriately.
I think it's because you have (line 100)
svg = svg
.append("g").attr("class","zoom-layer")
.append("g")
So svg
subsequently points to the group within the zoom layer.
Yes, just pointing out that we should probably do that better so it’s clear later on.
Addressed issue #192