Making a graph inside a leaflet popup using geoJson data
问题 I'm working on a map that uses leaflet and is populated by data from a file in a GeoJson format. My overarching goal is to put graphs into the leaflet popups for each marker on the map. Getting the markers for each feature and getting the popups to open was fairly easy. However, I am finding it difficult to use D3 to add to the popup. For the sake of simplicity my goal at the moment is to use D3 to create a svg within each leaflet popup div and draw a square. I have found some examples where