Überlappende Knoten

Dreißig kleine Quellen münden in fünf Gruppen: Knoten und Beschriftungen bleiben voneinander getrennt.

Why it matters many small nodes in one column never overlap: padding shrinks before nodes do, minNodeHeight keeps tiny flows visible, labels avoid each other and the plot edge

Chart type
Sankey sankey
Tier
Premium
Collection
Sankey
Zeichnen
Live im Website-Design
.md ansehen Agenten einrichten
LIVE/sankey/node-overlapping7 of 23 in Sankey

Configuration

Original Standalone
const options = {
  chart: {
    height: 620,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["Store 1", "East", 120],
        ["Store 2", "West", 15],
        ["Store 3", "South", 25],
        ["Store 4", "South", 20],
        ["Store 5", "South", 5],
        ["Store 6", "East", 27],
        ["Store 7", "South", 21],
        ["Store 8", "North", 9],
        ["Store 9", "Online", 31],
        ["Store 10", "West", 5],
        ["Store 11", "South", 15],
        ["Store 12", "North", 7],
        ["Store 13", "West", 31],
        ["Store 14", "North", 3],
        ["Store 15", "East", 15],
        ["Store 16", "North", 12],
        ["Store 17", "West", 30],
        ["Store 18", "South", 7],
        ["Store 19", "Online", 5],
        ["Store 20", "West", 7],
        ["Store 21", "East", 2],
        ["Store 22", "West", 26],
        ["Store 23", "South", 4],
        ["Store 24", "South", 14],
        ["Store 25", "West", 2],
        ["Store 26", "East", 3],
        ["Store 27", "East", 13],
        ["Store 28", "East", 15],
        ["Store 29", "West", 24],
        ["Store 30", "South", 5]
      ]
    }
  ],
  plotOptions: {
    sankey: {
      nodePadding: 10,
      minNodeHeight: 3
    }
  },
  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?