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([ [ 'Fairmont Washington', 'Total CMM Energy Use in 20037', 22961740], [ '0600 New Hampshire Ave Watergate', 'Total CMM Energy Use in 20037', 5525620], [ '2101 L Street Owners', 'Total CMM Energy Use in 20037', 7790265 ], [ '2300 N St', 'Total CMM Energy Use in 20037', 7202514 ], [ 'Washington West End Marriott', 'Total CMM Energy Use in 20037', 3994247 ], [ '2200 Pennsylvania', 'Total CMM Energy Use in 20037', 6196495], [ '2445 M St', 'Total CMM Energy Use in 20037', 6672616 ], [ 'Floyd Akers Building DOEE', 'Total CMM Energy Use in 20037', 5468628 ], [ '2100 Pennsylvania Ave', 'Total CMM Energy Use in 20037', 5399042 ], [ 'George Washington University', 'Total CMM Energy Use in 20037', 807046 ], [ '1875 Connecticut Ave', 'Total CMM Energy Use in 20037', 5349282 ], [ 'Park Hyatt Washington', 'Total CMM Energy Use in 20037', 6953889 ], [ 'Other Buildings', 'Total CMM Energy Use in 20037', 72446138], ]); // Sets chart options. var options = { width: 600, }; // Instantiates and draws our chart, passing in some options. var colors = ['#a6cee3', '#b2df8a', '#fb9a99', '#fdbf6f', '#cab2d6', '#ffff99', '#1f78b4', '#33a02c']; var options = { height: 400, sankey: { node: { colors: colors }, link: { colorMode: 'gradient', colors: colors } } }; var chart = new google.visualization.Sankey(document.getElementById('sankey_basic')); chart.draw(data, options); }

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eget sapien sed risus suscipit cursus. Quisque iaculis facilisis lacinia. Mauris euismod pellentesque tellus sit amet mollis. Nulla a scelerisque turpis, in gravida enim. Pellentesque sagittis faucibus elit, nec lobortis augue fringilla sed. Donec aliquam, mi in varius interdum, ante metus facilisis urna, in faucibus erat ex nec lectus. Cras tempus tincidunt purus, eu vehicula ante. Duis cursus vestibulum lorem.