CSS Theming

Nodes, links and labels carry stable classes (wcc-node, wcc-link, wcc-label) for CSS overrides.

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

Configuration

Raw Standalone
const options = {
  chart: {
    height: 340,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["North", "Hub", 30],
        ["South", "Hub", 24],
        ["Hub", "Retail", 32],
        ["Hub", "Online", 22]
      ]
    }
  ],
  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?