Estimated US Energy Consumption in 2017

by Black Label

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/sankey.js"></script>

<div id="container"></div>

JavaScript

const chart = Highcharts.chart('container', {
  chart: {
    animation: false
  },
  series: [{
    ignoreHiddenPoint: true,
    keys: ['from', 'to', 'weight'],
    data: [
      ['step0', 'Milw', 4],
      ['Milw', 'Production', 1],
      ['Milw', 'Assemley', 1],
      ['Milw', 'Pakking', 0.5],
      ['Production', 'Gracing', 0.7],
      ['Production', 'Gridling', 0.3],
      ['Assemley', 'Posllising', 0.7],
      ['Assemley', 'Clining', 0.3],
      ['Pakking', 'Pakking one', 0.5],
      ['Pakking', 'Pakking two', 0.5]
    ],
    type: 'sankey'
  }]
});

const series = chart.series[0];

series.points[0].remove(true, false);
series.nodes[0].graphic.hide();