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...
Sreejith
10 years agoAdvocate I
The following code worked for me while trying to create a custom visual that have a Resolve link which redirects to an API on click. I used the default YourVisual template and added the link as
tr.selectAll("td")
.data(d=> d)
.enter().append("td")
.attr('data-th',(d, i) => viewModel.categories[i].value)
.text(d => this.format(d)).append('a')
.attr("href", "https://www.google.com")
.attr("target","_top")
.text(" Resolve");
Hope this helps.
vincent_1234
10 years agoHelper I
This doesn't work for me (either _top or _blank) in both designer and portal