Forum Discussion
dhavalu
10 years agoFrequent Visitor
Hyperlink not clickable with custom visual.
Hello, I am working on creating custom visual which creats simple hyperlink using d3js. Some how when its clicked it dosent open the browser even though the link has proper href and target tags. I...
Luisa
8 years agoNew Member
For anyone still searching for the answer to this (as I was), there is a utility in Power BI to do this called Launch URL. You can use it as simply as follows.
.on("click", data => {
(d3.event as MouseEvent).preventDefault();
});
Here are the docs about it:
https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md