I need to make the label of the dc bubble chart as a clickable link. On click of the link the user should be redirected to a different url.
I tried creating an anchor tag in the .label of the chart but it did not work. Any ideas on how this can be done?
.label(function (p) {
var someNumberTodisplay = p.value.count;
var aTag = document.createElement('a');
aTag.setAttribute('href',"/someurl");
aTag.setAttribute('title', someNumberTodisplay );
//This did not work
//aTag.onclick = labelClickFunction();
/ //This did not work either
aTag.addEventListener("click", labelClickFunction(), false);
return aTag;
})