Alternate Node

Node alignment: justify, left, right and centre - switch with the buttons.

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

Configuration

Raw Standalone
const options = {
  chart: {
    height: 400,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["Ads", "Visit", 50],
        ["Search", "Visit", 70],
        ["Visit", "Sign-up", 48],
        ["Visit", "Leave", 72],
        ["Sign-up", "Trial", 40],
        ["Partners", "Trial", 14],
        ["Trial", "Paid", 22],
        ["Trial", "Lapsed", 32],
        ["Search", "Docs", 20],
        ["Docs", "Leave", 20]
      ]
    }
  ],
  plotOptions: {
    sankey: {
      nodeAlign: "justify"
    }
  },
  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?