Closed pietrofxq closed 6 years ago
Found a way:
let bubbles = d3.selectAll(".datamaps-bubble")
bubbles.on("click", bubble => {
console.log("Bubble click:", bubble);
})
@pietrofxq Similar issue here I cannot sort this out neither. I want to drop in a custom popupTemplate on bubbles in the none angularjs version this is part of the second parameter to the datamap.bubbles(data, { ... }) method call. Any chance you sorted out how to do this?
I know this is possible by having the map object returned by the DataMap constructor and adding the click handler with d3, how is that possible with this wrapper if there's no access to the map object?