anychart.onDocumentReady(function () {
{from: "Solar Energy", to: "Shading", weight: 10},
{from: "Shading", to: null, weight: 6},
{from: "Shading", to: "Facade", weight: 4},
{from: "Facade", to: null, weight: 3},
{from: "Facade", to: "Interior", weight: 1}
var chart = anychart.sankey(data);
chart.node().normal().fill("#64b5f6 0.5");
chart.node().hovered().fill(anychart.color.darken("#64b5f6"));
chart.node().normal().stroke("#455a64", 2);
chart.flow().normal().fill("#ffa000 0.4");
chart.flow().hovered().fill(anychart.color.darken("#ffa000"));
chart.flow().hovered().stroke("#455a64");
chart.dropoff().normal().fill(
{keys: ["#dd2c00 0.4", "#455a64 0.7"], angle: 270}
chart.dropoff().hovered().stroke("#455a64");
chart.title("Sankey Diagram: Appearance");
chart.container("container");