Data Morph

Switch between two different structures; shared nodes morph, new ones fade in.

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

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["Web", "Checkout", 60],
        ["App", "Checkout", 40],
        ["Checkout", "Card", 70],
        ["Checkout", "Wallet", 30]
      ]
    }
  ],
  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?