google.load("visualization", "1.1", {packages:["sankey"]}); google.setOnLoadCallback(drawChart); var colors = ['#000000','#dccf5a']; var options = { height: 632, width: 200, sankey: { node: { colors: colors }, link: { colors: colors } } }; function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('string', 'From'); data.addColumn('string', 'To'); data.addColumn('number', 'Weight'); data.addRows([ [ 'תל אביב', 'X', 5 ], [ 'תל אביב', 'Y', 7 ], [ 'תל אביב', 'Z', 6 ], [ 'ירושליים', 'X', 2 ], [ 'רמת גן', 'Y', 9 ], [ 'רמת גן', 'Z', 4 ] ]); // Instantiates and draws our chart, passing in some options. var chart = new google.visualization.Sankey(document.getElementById('sankey_basic')); chart.draw(data, options); }