Marimekko Chart

Category totals set column widths while series shares stack within each column.

Marimekko Chart

Data Sources

5

Fields

21

Scales

1

Layers

7

Glyphs

36

rect 16 / text 20

North / Online: 86North / Retail: 52North / Partner: 34South / Online: 48South / Retail: 72South / Partner: 28East / Online: 64East / Retail: 38East / Partner: 58West / Online: 44West / Retail: 42West / Partner: 22865234487228643858444222NorthSouthEastWestOnlineRetailPartnerSeries

Data Flow Diagram

0/393 nodes
0/711 edges
393 hidden

Select a glyph to highlight its complete source path.

Scope

Roles

source
transform
field
scale
layer
param
glyph

No matching flow nodes

Adjust search, scope, or role filters.

Available Data

5 tables
2 transforms

Category mix

category-mix
raw
5 columns
feeds marimekko-mosaic-layout

ChartSpec

{
  "id": "catalogue.marimekko",
  "data": [
    {
      "id": "category-mix",
      "rows": 12
    },
    {
      "id": "mosaic-segments",
      "rows": 12
    },
    {
      "id": "category-labels",
      "rows": 4
    },
    {
      "id": "__guide.series-legend",
      "rows": 3
    },
    {
      "id": "__guide.series-legend.title",
      "rows": 1
    }
  ],
  "transforms": [
    {
      "id": "marimekko-mosaic-layout",
      "type": "layout",
      "input": "category-mix",
      "output": "mosaic-segments",
      "options": {
        "groupBy": [
          "category"
        ],
        "layout": "plot",
        "layoutKind": "mosaic",
        "seriesBy": "series",
        "value": "value"
      }
    },
    {
      "id": "marimekko-category-centers",
      "type": "layout",
      "input": "mosaic-segments",
      "output": "category-labels",
      "options": {
        "groupBy": [
          "category"
        ],
        "layoutKind": "groupCenters"
      }
    }
  ],
  "legends": [
    {
      "id": "series-legend",
      "scale": "color",
      "kind": "color",
      "title": "Series"
    }
  ],
  "fields": [
    "category",
    "series",
    "value",
    "categoryShare",
    "segmentShare",
    "x",
    "y",
    "width",
    "height",
    "tooltip",
    "categoryCenter",
    "groupCenter",
    "categoryWidth",
    "categoryTotal",
    "formatted",
    "label",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "color",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "mosaic-segments",
        "field": "series"
      }
    }
  ],
  "layers": [
    {
      "id": "series-legend-swatches",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "series-legend-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "series-legend-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "plot-frame",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "mosaic-segments",
      "mark": "rect",
      "role": "data"
    },
    {
      "id": "segment-values",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "category-labels",
      "mark": "text",
      "role": "guide"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "catalogue.marimekko.scene",
  "scales": [
    {
      "id": "color",
      "type": "ordinal",
      "domain": [
        "Online",
        "Retail",
        "Partner"
      ],
      "range": [
        "var(--colors-blue-9)",
        "var(--colors-green-9)",
        "var(--colors-amber-9)",
        "var(--colors-purple-9)",
        "var(--colors-red-9)"
      ]
    }
  ],
  "layers": [
    {
      "id": "plot-frame",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "mosaic-segments",
      "role": "data",
      "zIndex": 10,
      "glyphs": 12
    },
    {
      "id": "segment-values",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 12
    },
    {
      "id": "series-legend-swatches",
      "role": "guide",
      "zIndex": 30,
      "glyphs": 3
    },
    {
      "id": "category-labels",
      "role": "guide",
      "zIndex": 30,
      "glyphs": 4
    },
    {
      "id": "series-legend-labels",
      "role": "guide",
      "zIndex": 31,
      "glyphs": 3
    },
    {
      "id": "series-legend-title",
      "role": "guide",
      "zIndex": 32,
      "glyphs": 1
    }
  ]
}

Glyph Data Tree

7 layers

Full parameter lineage for the active compiler surface.

plot-frame

1

mosaic-segments

12

segment-values

12

series-legend-swatches

3

category-labels

4

series-legend-labels

3

series-legend-title

1

Glyph Inspector

none

Select a glyph in the chart to inspect resolved params and lineage.