<?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>Question Re: Analytics Cloud: Build custom widget with D3js in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159453#M4546286</link>
    <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;D3 is a bit of an odd bird, as far as imports go.  SAP Analytics Cloud uses D3 itself and you can easily get into conflict.  I'll write a special post on the things that you need to do to use D3, but I can give you a teaser now.  Look in &lt;A href="https://github.com/SAPTechEd2019ain369/AIN369_SOLUTION"&gt;this github repository&lt;/A&gt;.  Pay special attention to the fact that the custom element class declaration follows the successful loading of D3.  Also note that we remove d3script in the disconnected callback.  &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 10:04:31 GMT</pubDate>
    <dc:creator>david_stocker</dc:creator>
    <dc:date>2020-01-27T10:04:31Z</dc:date>
    <item>
      <title>Analytics Cloud: Build custom widget with D3js</title>
      <link>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaq-p/12159451</link>
      <description>&lt;P&gt;Hi community, &lt;/P&gt;
  &lt;P&gt;I would like to build a Custom Widget for SAP Analytics Cloud making use of D3js for fancy graphics. I've read this should work using webpack for example, however I am a little uncertain of how to apply it in this case. &lt;/P&gt;
  &lt;P&gt;Does anyone know an example that shows how to include an external JavaScript library in a Custom Widget Web Component? &lt;/P&gt;
  &lt;P&gt;Thanks a lot!&lt;/P&gt;
  &lt;P&gt;Johannes &lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 12:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaq-p/12159451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-20T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Analytics Cloud: Build custom widget with D3js</title>
      <link>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159452#M4546285</link>
      <description>&lt;P&gt;Hello Johannes,&lt;/P&gt;&lt;P&gt;take a look here with also the pointer to the developer handbook for custom widgets.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/11/25/announcing-custom-widgets-in-sap-analytics-cloud/"&gt;https://blogs.sap.com/2019/11/25/announcing-custom-widgets-in-sap-analytics-cloud/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ingo Hilgefort, SAP&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 16:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159452#M4546285</guid>
      <dc:creator>IngoH</dc:creator>
      <dc:date>2020-01-20T16:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Analytics Cloud: Build custom widget with D3js</title>
      <link>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159453#M4546286</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;D3 is a bit of an odd bird, as far as imports go.  SAP Analytics Cloud uses D3 itself and you can easily get into conflict.  I'll write a special post on the things that you need to do to use D3, but I can give you a teaser now.  Look in &lt;A href="https://github.com/SAPTechEd2019ain369/AIN369_SOLUTION"&gt;this github repository&lt;/A&gt;.  Pay special attention to the fact that the custom element class declaration follows the successful loading of D3.  Also note that we remove d3script in the disconnected callback.  &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 10:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159453#M4546286</guid>
      <dc:creator>david_stocker</dc:creator>
      <dc:date>2020-01-27T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Analytics Cloud: Build custom widget with D3js</title>
      <link>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159454#M4546287</link>
      <description>&lt;P&gt;Using webpack or another bundler is the recommended approach, as it avoid conflicts when having the same library in  different versions in one context. Of course the library has to support this and is not defining any global variables. Webpack will create one file containg your custom widget implementation and your third party libraries. You can use any webpack setup. Good starting point is &lt;A href="https://webpack.js.org/guides/getting-started/" target="test_blank"&gt;https://webpack.js.org/guides/getting-started/&lt;/A&gt;. There is nothing specific to custom widgets here. If you are also using Babel make sure not to package the babel polyfill with your code as it is provided by SAP Analytics Cloud already.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/analytics-cloud-build-custom-widget-with-d3js/qaa-p/12159454#M4546287</guid>
      <dc:creator>Bob0001</dc:creator>
      <dc:date>2020-01-27T14:09:07Z</dc:date>
    </item>
  </channel>
</rss>

