<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to append a hyperlink on d3 element on custom visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-append-a-hyperlink-on-d3-element-on-custom-visual/m-p/750280#M20113</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to insert a hyperlink on d3 element, e.g. when user click on the element, it will direct the browser to another page.&amp;nbsp; Is it doable?&lt;/P&gt;&lt;P&gt;I followed these 2 links but had no success.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/td-p/39446" target="_blank"&gt;https://community.powerbi.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/td-p/39446&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;my visual.ts code is simple, basically have a rect and need to get this rect clickable with the hyperlink.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 16:44:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-26T16:44:27Z</dc:date>
    <item>
      <title>How to append a hyperlink on d3 element on custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-append-a-hyperlink-on-d3-element-on-custom-visual/m-p/750280#M20113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to insert a hyperlink on d3 element, e.g. when user click on the element, it will direct the browser to another page.&amp;nbsp; Is it doable?&lt;/P&gt;&lt;P&gt;I followed these 2 links but had no success.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/td-p/39446" target="_blank"&gt;https://community.powerbi.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/td-p/39446&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;my visual.ts code is simple, basically have a rect and need to get this rect clickable with the hyperlink.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 16:44:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-append-a-hyperlink-on-d3-element-on-custom-visual/m-p/750280#M20113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T16:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a hyperlink on d3 element on custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-append-a-hyperlink-on-d3-element-on-custom-visual/m-p/750795#M20130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Because custom visuals are sandboxed, they prevent external links, as they can (potentially) inadvertently expose users to malicious intent.&amp;nbsp;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/launching-url/" target="_self"&gt;launchUrl&lt;/A&gt; is the supported way to do this - I see you've tried, but this is how I've got it working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If implemented correctly, then the user gets prompted that they are about to navigate away. I have something like this in the Violin Plot, e.g.:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/180734i9D23AF21C29F02B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://bitbucket.org/dm-p/power-bi-visuals-violin-plot/src/a83d709080931c12604ba872120fff874dc8283f/src/visualHelpers.ts#lines-505" target="_self"&gt;Here's where I'm implementing in my code&lt;/A&gt;, if this helps you to clarify how it's being done.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 19:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-append-a-hyperlink-on-d3-element-on-custom-visual/m-p/750795#M20130</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-07-28T19:42:25Z</dc:date>
    </item>
  </channel>
</rss>

