<?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 Re: Javascript visualisations (D3, google charts etc) in SAS EG browser not working? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424597#M27356</link>
    <description>Ahah, I figured you'd come the moment I hit my answer button...  Is the hosted version available somewhere to run (in order to test things) or is it hidden in a DLL and unaccessible outside?  I expected to find an "iexplore.exe" or something similar hanging around somewhere in the SAS folders, but I couldn't find it.</description>
    <pubDate>Wed, 03 Jan 2018 15:28:28 GMT</pubDate>
    <dc:creator>snoopy369</dc:creator>
    <dc:date>2018-01-03T15:28:28Z</dc:date>
    <item>
      <title>Javascript visualisations (D3, google charts etc) in SAS EG browser not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424586#M27353</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try to use Google Charts to make a Sankey Diagram in SAS eg i cant view it in the "SAS EG browser". If I right click and choose "open with windows default" then it works fine in Firefox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong or are JS visualisations such as google charts not supported by the SAS eg ouput viewer browser?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename _webout "out2.html";
data _null_;
 file _webout;
put ' &amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type="text/javascript"&amp;gt;
      google.charts.load("current", {"packages":["sankey"]});
      google.charts.setOnLoadCallback(drawChart);

      function drawChart() {
        var data = new google.visualization.DataTable();
        data.addColumn("string", "From");
        data.addColumn("string", "To");
        data.addColumn("number", "Weight");
        data.addRows([
          [ "A", "X", 5 ],
          [ "A", "Y", 7 ],
          [ "A", "Z", 0 ],
          [ "B", "X", 2 ],
          [ "B", "Y", 9 ],
          [ "B", "Z", 4 ]
        ]);
       
        var options = {
          width: 600,
        };

        var chart = new google.visualization.Sankey(document.getElementById("sankey_basic"));
        chart.draw(data, options);
      }
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="sankey_basic" style="width: 900px; height: 300px;"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;'
;;;;;;;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The error I get in SAS EG when viewing the ouput there:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 458px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17609i52E381FF9AEEF8EB/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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424586#M27353</guid>
      <dc:creator>invalid</dc:creator>
      <dc:date>2018-01-03T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript visualisations (D3, google charts etc) in SAS EG browser not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424594#M27354</link>
      <description>&lt;P&gt;The embedded browser in EG is a hosted version of the Microsoft IE component that's built into Windows.&amp;nbsp; You can change your EG preferences to always open HTML output in an external window (Chrome or FF).&amp;nbsp; The embedded browser won't be able to run your scripts.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424594#M27354</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-01-03T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript visualisations (D3, google charts etc) in SAS EG browser not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424597#M27356</link>
      <description>Ahah, I figured you'd come the moment I hit my answer button...  Is the hosted version available somewhere to run (in order to test things) or is it hidden in a DLL and unaccessible outside?  I expected to find an "iexplore.exe" or something similar hanging around somewhere in the SAS folders, but I couldn't find it.</description>
      <pubDate>Wed, 03 Jan 2018 15:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424597#M27356</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-03T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript visualisations (D3, google charts etc) in SAS EG browser not working?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424612#M27360</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46466"&gt;@snoopy369&lt;/a&gt;&amp;nbsp;- it's wrapped up in the WebBrowser control that's part of the .NET Framework.&amp;nbsp; Under the surface, it is using some DLLs that are shared with IE.&amp;nbsp; It would be simple to build a small app that could be used for testing, but there isn't a way (that I know of) to drive EG to do this for you.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Javascript-visualisations-D3-google-charts-etc-in-SAS-EG-browser/m-p/424612#M27360</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-01-03T16:37:06Z</dc:date>
    </item>
  </channel>
</rss>

