Marimekko Chart

Rebuilds the Marimekko chart with mosaic layout rows, direct rect geometry, value labels, and a legend.

Marimekko Chart
Gallery Marimekko Pipeline pipeline

Data Sources

4

Fields

25

Scales

1

Layers

9

Glyphs

35

rect 18 / text 17

value mosaic panelNorth / Online: 86North / Retail: 52North / Partner: 34South / Online: 48South / Retail: 72South / Partner: 28East / Online: 64East / Retail: 38East / Partner: 58West / Online: 44West / Retail: 42West / Partner: 22868652523434484872722828646438385858444442422222OnlineRetailPartnerseries

Build Path

Gallery Marimekko Pipeline

This example is rebuilt from gallery data source category-mix by recipe marimekkoChart: raw table rows -> TabularSource -> pipeline drafts -> analyzeAuthoringDrafts() -> materialized ChartSpec -> compileChart() -> SceneGraph -> SVG. The graph below shows the authored pipeline stage.

Pipeline recipe graph

6 pipelines
7 nodes
6 edges

Data Flow Diagram

0/423 nodes
0/741 edges
423 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

4 tables
1 transforms

Imported table

source_gallery_marimekkochart
raw
6 columns
feeds pipeline_mosaic_layout_transform

ChartSpec

{
  "id": "gallery.marimekkoChart",
  "data": [
    {
      "id": "source_gallery_marimekkochart",
      "rows": 12
    },
    {
      "id": "source_mosaic_segments",
      "rows": 12
    },
    {
      "id": "__guide.pipeline_colorlegend_guide",
      "rows": 3
    },
    {
      "id": "__guide.pipeline_colorlegend_guide.title",
      "rows": 1
    }
  ],
  "transforms": [
    {
      "id": "pipeline_mosaic_layout_transform",
      "type": "layout",
      "input": "source_gallery_marimekkochart",
      "output": "source_mosaic_segments",
      "options": {
        "count": 1,
        "errorMethod": "standardError",
        "fit": "contain",
        "groupBy": [
          "category"
        ],
        "includeMax": true,
        "layout": "pipeline_value_mosaic_panel_layout",
        "layoutKind": "mosaic",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "seriesBy": "series",
        "value": "value"
      }
    }
  ],
  "axes": [],
  "grids": [],
  "legends": [
    {
      "id": "pipeline_colorlegend_guide",
      "scale": "pipeline_series_color_color_scale",
      "kind": "color",
      "title": "series"
    }
  ],
  "fields": [
    "__rowLabel",
    "id",
    "category",
    "series",
    "value",
    "categoryCenter",
    "categoryShare",
    "categoryTotal",
    "categoryWidth",
    "centerX",
    "centerY",
    "formatted",
    "groupCenter",
    "height",
    "segmentShare",
    "tooltip",
    "width",
    "x",
    "y",
    "label",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "pipeline_series_color_color_scale",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "source_mosaic_segments",
        "field": "series",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    }
  ],
  "layers": [
    {
      "id": "pipeline_colorlegend_guide-swatches",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_colorlegend_guide-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_colorlegend_guide-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_mosaic_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_mosaic_panel_layout_frame",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_value_mosaic_panel_layout_label",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_value_mosaic_segments_layer",
      "mark": "rect",
      "role": "data"
    },
    {
      "id": "pipeline_value_mosaic_values_layer",
      "mark": "text",
      "role": "guide"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.marimekkoChart.scene",
  "scales": [
    {
      "id": "pipeline_series_color_color_scale",
      "type": "ordinal",
      "domain": [
        "Online",
        "Retail",
        "Partner"
      ],
      "range": [
        "var(--colors-blue-9)",
        "var(--colors-orange-9)",
        "var(--colors-green-9)",
        "var(--colors-purple-9)"
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_mosaic_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_mosaic_panel_layout_frame",
      "role": "guide",
      "zIndex": 1,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_mosaic_panel_layout_label",
      "role": "guide",
      "zIndex": 2,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_mosaic_segments_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 12
    },
    {
      "id": "pipeline_value_mosaic_values_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 12
    },
    {
      "id": "pipeline_colorlegend_guide-swatches",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 3
    },
    {
      "id": "pipeline_colorlegend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 3
    },
    {
      "id": "pipeline_colorlegend_guide-title",
      "role": "guide",
      "zIndex": 42,
      "glyphs": 1
    }
  ]
}

Glyph Data Tree

9 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_value_mosaic_panel_layout_surface

1

pipeline_value_mosaic_panel_layout_frame

1

pipeline_value_mosaic_panel_layout_label

1

pipeline_value_mosaic_segments_layer

12

pipeline_value_mosaic_values_layer

12

pipeline_colorlegend_guide-swatches

3

pipeline_colorlegend_guide-labels

3

pipeline_colorlegend_guide-title

1

Glyph Inspector

none

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