<?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 Using D3 v5 for developing custom visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/506896#M15607</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use D3 v5 to develop custom visual but with no success.&lt;/P&gt;&lt;P&gt;I tried importing 'select' from 'D3-Selection' using following synatax&lt;/P&gt;&lt;PRE&gt;import { select } from 'd3-selection';&lt;/PRE&gt;&lt;P&gt;but I got the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[ts] Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How can I use D3 v5 to create Power BI Custom visual? Also I was trying to import only needed D3 component rather than whole D3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tsconfig.json file&lt;/P&gt;&lt;PRE&gt;{
  "compilerOptions": {
    "allowJs": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "ES5",
    "sourceMap": true,
    "out": "./.tmp/build/visual.js"
  },
  "files": [
    ".api/v2.1.0/PowerBI-visuals.d.ts",
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
    "src/settings.ts",
    "src/visual.ts",
    "node_modules/@types/d3-selection/index.d.ts"
  ]
}&lt;/PRE&gt;&lt;P&gt;pbiviz.json file&lt;/P&gt;&lt;PRE&gt;{
  "visual": {
    "name": "test",
    "displayName": "Test",
    "guid": "test8563230F5E9C414D942A3CF4AD47F334",
    "visualClassName": "Visual",
    "version": "1.0.0",
    "description": "",
    "supportUrl": "",
    "gitHubUrl": ""
  },
  "apiVersion": "2.1.0",
  "author": {
    "name": "",
    "email": ""
  },
  "assets": {
    "icon": "assets/icon.png"
  },
  "externalJS": [
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
    "node_modules/d3-selection/dist/d3-selection.min.js"
  ],
  "style": "style/visual.less",
  "capabilities": "capabilities.json",
  "dependencies": "dependencies.json",
  "stringResources": []
}&lt;/PRE&gt;&lt;P&gt;package.json file&lt;/P&gt;&lt;PRE&gt;{
  "name": "visual",
  "dependencies": {
    "d3": "^5.7.0",
    "powerbi-visuals-utils-dataviewutils": "1.2.0"
  },
  "devDependencies": {
    "@types/d3": "^5.0.0"
  }
}&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Sep 2018 10:19:49 GMT</pubDate>
    <dc:creator>bhavesh-jadav</dc:creator>
    <dc:date>2018-09-04T10:19:49Z</dc:date>
    <item>
      <title>Using D3 v5 for developing custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/506896#M15607</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use D3 v5 to develop custom visual but with no success.&lt;/P&gt;&lt;P&gt;I tried importing 'select' from 'D3-Selection' using following synatax&lt;/P&gt;&lt;PRE&gt;import { select } from 'd3-selection';&lt;/PRE&gt;&lt;P&gt;but I got the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[ts] Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How can I use D3 v5 to create Power BI Custom visual? Also I was trying to import only needed D3 component rather than whole D3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tsconfig.json file&lt;/P&gt;&lt;PRE&gt;{
  "compilerOptions": {
    "allowJs": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "ES5",
    "sourceMap": true,
    "out": "./.tmp/build/visual.js"
  },
  "files": [
    ".api/v2.1.0/PowerBI-visuals.d.ts",
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
    "src/settings.ts",
    "src/visual.ts",
    "node_modules/@types/d3-selection/index.d.ts"
  ]
}&lt;/PRE&gt;&lt;P&gt;pbiviz.json file&lt;/P&gt;&lt;PRE&gt;{
  "visual": {
    "name": "test",
    "displayName": "Test",
    "guid": "test8563230F5E9C414D942A3CF4AD47F334",
    "visualClassName": "Visual",
    "version": "1.0.0",
    "description": "",
    "supportUrl": "",
    "gitHubUrl": ""
  },
  "apiVersion": "2.1.0",
  "author": {
    "name": "",
    "email": ""
  },
  "assets": {
    "icon": "assets/icon.png"
  },
  "externalJS": [
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
    "node_modules/d3-selection/dist/d3-selection.min.js"
  ],
  "style": "style/visual.less",
  "capabilities": "capabilities.json",
  "dependencies": "dependencies.json",
  "stringResources": []
}&lt;/PRE&gt;&lt;P&gt;package.json file&lt;/P&gt;&lt;PRE&gt;{
  "name": "visual",
  "dependencies": {
    "d3": "^5.7.0",
    "powerbi-visuals-utils-dataviewutils": "1.2.0"
  },
  "devDependencies": {
    "@types/d3": "^5.0.0"
  }
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/506896#M15607</guid>
      <dc:creator>bhavesh-jadav</dc:creator>
      <dc:date>2018-09-04T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using D3 v5 for developing custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/506917#M15609</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/62079"&gt;@bhavesh-jadav&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The most recent version of D3 that I know works within Power BI is 3.5; the tutorial is here: &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/step-by-step-lab/adding-visual-elements/" target="_blank"&gt;https://microsoft.github.io/PowerBI-visuals/docs/step-by-step-lab/adding-visual-elements/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps someone from MS can confirm this or point to a 5.x resource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Phillip&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:01:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/506917#M15609</guid>
      <dc:creator>mikorym</dc:creator>
      <dc:date>2018-09-04T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using D3 v5 for developing custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/540455#M16717</link>
      <description>&lt;P&gt;I found the steps to use v5 of D3 fro Power BI Custom visuals. See below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/" target="_self"&gt;https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 05:48:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-D3-v5-for-developing-custom-visual/m-p/540455#M16717</guid>
      <dc:creator>bhavesh-jadav</dc:creator>
      <dc:date>2018-10-12T05:48:03Z</dc:date>
    </item>
  </channel>
</rss>

