dc-js / dc.leaflet.js

DC charts using Leaflet maps
Apache License 2.0
52 stars 24 forks source link

D3-bind svg elements after Leaflet creates them? #1

Open gordonwoodhull opened 9 years ago

gordonwoodhull commented 9 years ago

As reported here, d3.tip and other d3 stuff won't work on the shapes in dc.leaflet because the data isn't bound:

http://stackoverflow.com/questions/31790830/d-undefined-for-d3-tip-tooltip-with-dc-leafletchoroplethchart

Since leaflet is creating the svg elements, not d3, the data is not attached and dc.leaflet.js is internally keeping a _dataMap to specify colors etc.

Could we bind those elements post hoc? Or is this dangerous?

Does leaflet have its own notion of data binding?