Data Update

New values every 2.5 s; nodes and links glide to their new size.

Chart type
Sankey sankey
Tier
Premium
Collection
Sankey
Render
Live, site theme
View .md Agent setup
LIVE/sankey/data-update8 of 23 in Sankey

Configuration

Raw Standalone
const options = {
  chart: {
    height: 400,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["Solar", "Grid", 39],
        ["Wind", "Grid", 50],
        ["Gas", "Grid", 28],
        ["Nuclear", "Grid", 18],
        ["Grid", "Homes", 48],
        ["Grid", "Industry", 57],
        ["Grid", "Transport", 16],
        ["Grid", "Losses", 14]
      ]
    }
  ],
  plotOptions: {
    sankey: {
      link: {
        colorMode: "source"
      }
    }
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()

This example uses Premium modules. Compare licences · Embedding in a distributed product?