google.charts.load('current', {'packages':['sankey']});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'From');
data.addColumn('string', 'To');
data.addColumn('number', 'Weight');
data.addRows([
/* this is copied from the SEDE Query result */
['dba','programmers',107],
['dba','serverfault',848],
['dba','superuser',111],
['dba','stackoverflow',8994],
['wordpress','webapps',79],
['wordpress','serverfault',63],
['wordpress','superuser',108],
['wordpress','webmasters',280],
['wordpress','stackoverflow',1396],
['gis','opendata',114],
['gis','stackoverflow',465],
['opendata','datascience',182],
['apple','unix',55],
['apple','webapps',76],
['apple','stackoverflow',797],
['apple','serverfault',266],
['apple','superuser',1022],
['music','musicfans',216],
['music','sound',97],
['programmers','english',57],
['programmers','ux',178],
['programmers','webmasters',82],
['programmers','pm',104],
['programmers','unix',67],
['programmers','serverfault',67],
['programmers','superuser',185],
['programmers','workplace',283],
['programmers','codereview',492],
['programmers','cs',97],
['programmers','security',162],
['programmers','stackoverflow',11001],
['bitcoin','crypto',51],
['physics','hsm',150],
['physics','scicomp',140],
['physics','space',66],
['physics','astronomy',61],
['physics','skeptics',76],
['physics','biology',68],
['physics','chemistry',193],
['physics','math',2101],
['physics','academia',55],
['physics','electronics',462],
['joomla','stackoverflow',87],
['literature','english',55],
['linguistics','english',231],
['law','money',86],
['law','opensource',97],
['law','politics',152],
['law','security',64],
['expressionengine','stackoverflow',98],
['ux','graphicdesign',341],
['scicomp','math',85],
['scicomp','stackoverflow',78],
['cstheory','cs',698],
['cstheory','math',65],
['cstheory','stackoverflow',59],
['chemistry','biology',100],
['politics','history',57],
['gamedev','gaming',56],
['gamedev','stackoverflow',683],
['diy','gardening',263],
['diy','woodworking',75],
['diy','electronics',896],
['expatriates','travel',844],
['ai','datascience',94],
['ai','stackoverflow',73],
['webmasters','security',53],
['webmasters','webapps',654],
['webmasters','serverfault',789],
['webmasters','superuser',512],
['webmasters','stackoverflow',4580],
['ux','stackoverflow',258],
['networkengineering','serverfault',104],
['cs','superuser',65],
['cs','math',216],
['cs','stackoverflow',823],
['networkengineering','superuser',330],
['quant','stats',63],
['sharepoint','serverfault',63],
['sharepoint','stackoverflow',839],
['stats','datascience',76],
['stats','mathoverflow',118],
['stats','economics',85],
['stats','machinelearning',200],
['stats','math',876],
['stats','academia',53],
['stats','stackoverflow',7854],
['math','dsp',70],
['math','matheducators',62],
['math','hsm',52],
['math','crypto',76],
['math','stackoverflow',563],
['math','academia',78],
['math','math.meta',81],
['math','mathoverflow',2296],
['math','mathematica',937],
['philosophy','english',57],
['security','tor',76],
['security','unix',135],
['security','healthcareit',77],
['security','serverfault',874],
['security','superuser',2416],
['security','crypto',1217],
['security','stackoverflow',1423],
['health','biology',114],
['crypto','stackoverflow',582],
['crypto','superuser',160],
['opensource','softwareengineering',64],
['blender','stackoverflow',178],
['sports','fitness',101],
['travel','aviation',72],
['garage','diy',55],
['garage','electronics',267],
['softwarerecs','android',57],
['softwarerecs','superuser',116],
['softwarerecs','webapps',69],
['biology','gardening',54],
['writers','english',604],
['writers','techcomm',162],
['space','astronomy',328],
['dsp','electronics',61],
['dsp','stackoverflow',411],
['audio','graphicdesign',85],
['audio','photo',218],
['audio','sound',64],
['gaming','superuser',189],
['mathematica','stackoverflow',370],
['academia','openscience',70],
['webapps','stackoverflow',491],
['webapps','android',110],
['webapps','superuser',5442],
['travel','outdoors',53],
['codereview','stackoverflow',4388],
['hermeneutics','christianity',642],
['english','ell',7821],
['english','writing',255],
['codegolf','stackoverflow',128],
['movies','scifi',221],
['raspberrypi','electronics',178],
['raspberrypi','stackoverflow',187],
['raspberrypi','superuser',105],
['raspberrypi','unix',119],
['superuser','unix',376],
['superuser','windowsphone',70],
['superuser','meta',67],
['superuser','tex',58],
['superuser','stackoverflow',31855],
['superuser','graphicdesign',268],
['superuser','askubuntu',200],
['superuser','serverfault',13695],
['superuser','android',1572],
['superuser','electronics',987],
['stackoverflow','meta',5082],
['stackoverflow','ru.stackoverflow',81],
['stackoverflow','tex',3031],
['stackoverflow','askubuntu',75],
['stackoverflow','datascience',338],
['stackoverflow','arduino',196],
['stackoverflow','electronics',343],
['stackoverflow','drupal',935],
['stackoverflow','graphicdesign',144],
['stackoverflow','windowsphone',92],
['stackoverflow','magento',238],
['stackoverflow','softwareengineering',168],
['stackoverflow','unix',4040],
['stackoverflow','android',681],
['stackoverflow','serverfault',14511],
['stackoverflow','tridion',52],
['tex','tex.meta',107],
['graphicdesign','photo',154],
['unix','askubuntu',386],
['unix','serverfault',2898],
['sound','video',661],
['sound','avp',4041],
['stackapps','meta',99],
['economics','money',127],
['arduino','electronics',1632],
['engineering','electronics',121],
['engineering','embedded',57],
['ubuntu','unix',176],
['ubuntu','serverfault',234],
['ubuntu','superuser',58],
['ubuntu','stackoverflow',820],
['ru.stackoverflow','ru.meta.stackoverflow',63],
/* end copy of SEDE Query*/
]);
// Set chart options
var options = {
width: 1280,
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.Sankey(document.getElementById('sankey_basic'));
chart.draw(data, options);
}
<script type="text/javascript"
src="https://www.gstatic.com/charts/loader.js">
</script>
<div id="sankey_basic" style="width: 980px; height: 720px;"></div>