Verknüpfungsmodi: none / category / angle / map

Dasselbe Diagramm mit den verschiedenen Verknüpfungsmodi. none: unabhängige Ringe. category: Segmente verknüpfen gleich benannte Monate. angle: Monate innerhalb des jeweiligen Winkelbereichs. map: explizite Zuordnung, hier ein Geschäftsjahr ab April (Q1 → Apr–Jun).

Verknüpfte Ebenen

Chart type
Radial Column radialColumn
Tier
Premium
Collection
Radial Column · Linked layers
Zeichnen
Live, eingebettetes Beispiel
.md ansehen Agenten einrichten
LIVE/radial-column/multi-modes15 of 32 in Radial Column

Configuration

Original Standalone
// First chart on this page. The example combines several charts or controls;
// open the standalone example for the full source.
const options = {
  "chart": {
    "type": "radialColumn",
    "height": 500,
    "toolbar": {
      "show": false
    }
  },
  "series": [
    {
      "name": "Revenue",
      "data": [
        42,
        38,
        51,
        47,
        55,
        61,
        58,
        66,
        72,
        69,
        78,
        84
      ]
    }
  ],
  "xaxis": {
    "categories": [
      "Jan",
      "Feb",
      "Mar",
      "Apr",
      "May",
      "Jun",
      "Jul",
      "Aug",
      "Sep",
      "Oct",
      "Nov",
      "Dec"
    ]
  },
  "plotOptions": {
    "radialColumn": {
      "link": {
        "mode": "map",
        "map": (s) => (s.depth === 0 ? range(0, 3).map((k) => (+s.name.slice(1) * 3 + k) % 12) : [(months.indexOf(s.name) + 3) % 12]),
        "unit": "months"
      },
      "fill": {
        "type": "value",
        "stops": [
          "#3b82f6",
          "#8b5cf6",
          "#d946ef"
        ]
      },
      "layers": [
        {
          "type": "sunburst",
          "name": "Calendar",
          "data": [
            {
              "x": "Q1",
              "children": [
                {
                  "x": "Jan",
                  "y": 42
                },
                {
                  "x": "Feb",
                  "y": 38
                },
                {
                  "x": "Mar",
                  "y": 51
                }
              ]
            },
            {
              "x": "Q2",
              "children": [
                {
                  "x": "Apr",
                  "y": 47
                },
                {
                  "x": "May",
                  "y": 55
                },
                {
                  "x": "Jun",
                  "y": 61
                }
              ]
            },
            {
              "x": "Q3",
              "children": [
                {
                  "x": "Jul",
                  "y": 58
                },
                {
                  "x": "Aug",
                  "y": 66
                },
                {
                  "x": "Sep",
                  "y": 72
                }
              ]
            },
            {
              "x": "Q4",
              "children": [
                {
                  "x": "Oct",
                  "y": 69
                },
                {
                  "x": "Nov",
                  "y": 78
                },
                {
                  "x": "Dec",
                  "y": 84
                }
              ]
            }
          ]
        }
      ]
    }
  }
}

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