Hi! 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. Am I doing something wrong or are JS visualisations such as google charts not supported by the SAS eg ouput viewer browser? My code: filename _webout "out2.html";
data _null_;
file _webout;
put ' <html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
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);
}
</script>
</head>
<body>
<div id="sankey_basic" style="width: 900px; height: 300px;"></div>
</body>
</html>'
;;;;;;;
run; The error I get in SAS EG when viewing the ouput there: Best regards
... View more