Heatmap

Rebuilds the catalogue heatmap as band scales, sequential color, labels, and legend.

Heatmap
Gallery Heatmap Pipeline pipeline

Data Sources

5

Fields

15

Scales

3

Layers

9

Glyphs

137

rect 61 / text 76

ChartSpec BarChartSpec LineChartSpec StackedChartSpec HeatmapChartSpec PointChartSpec HistogramChartSpec OverviewChartSpec SmallChartSpec MapChartSpec TreemapChartSpec TableScales BarScales LineScales StackedScales HeatmapScales PointScales HistogramScales OverviewScales SmallScales MapScales TreemapScales TableLayers BarLayers LineLayers StackedLayers HeatmapLayers PointLayers HistogramLayers OverviewLayers SmallLayers MapLayers TreemapLayers TableGlyphs BarGlyphs LineGlyphs StackedGlyphs HeatmapGlyphs PointGlyphs HistogramGlyphs OverviewGlyphs SmallGlyphs MapGlyphs TreemapGlyphs TableInspector BarInspector LineInspector StackedInspector HeatmapInspector PointInspector HistogramInspector OverviewInspector SmallInspector MapInspector TreemapInspector Table355065567186779210798113526758738879941091001151306960759081961111021171321236277928398113104119134125140799485100115106121136127142157ChartSpecChartSpecScalesScalesLayersLayersGlyphsGlyphsInspectorInspectorBarBarLineLineStackedStackedHeatmapHeatmapPointPointHistogramHistogramOverviewOverviewSmallSmallMapMapTreemapTreemapTableTable050100150Value legend

Build Path

Gallery Heatmap Pipeline

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

Pipeline recipe graph

11 pipelines
12 nodes
21 edges

Data Flow Diagram

0/1555 nodes
0/3268 edges
1555 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

Imported table

source_gallery_heatmap
raw
8 columns
feeds pipeline_row_labels_transform
feeds pipeline_column_labels_transform

ChartSpec

{
  "id": "gallery.heatmap",
  "data": [
    {
      "id": "source_gallery_heatmap",
      "rows": 55
    },
    {
      "id": "source_row_labels",
      "rows": 5
    },
    {
      "id": "source_column_labels",
      "rows": 11
    },
    {
      "id": "__guide.pipeline_value_legend_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_value_legend_guide.title",
      "rows": 1
    }
  ],
  "transforms": [
    {
      "id": "pipeline_row_labels_transform",
      "type": "aggregate",
      "input": "source_gallery_heatmap",
      "output": "source_row_labels",
      "options": {
        "count": 1,
        "errorMethod": "standardError",
        "fit": "contain",
        "groupBy": [
          "row"
        ],
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": []
      }
    },
    {
      "id": "pipeline_column_labels_transform",
      "type": "aggregate",
      "input": "source_gallery_heatmap",
      "output": "source_column_labels",
      "options": {
        "count": 1,
        "errorMethod": "standardError",
        "fit": "contain",
        "groupBy": [
          "column"
        ],
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": []
      }
    }
  ],
  "axes": [],
  "grids": [],
  "legends": [
    {
      "id": "pipeline_value_legend_guide",
      "scale": "pipeline_value_color_color_scale",
      "kind": "color",
      "title": "Value legend"
    }
  ],
  "fields": [
    "__rowLabel",
    "row",
    "column",
    "value",
    "label",
    "tooltip",
    "id",
    "count",
    "x",
    "y",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "pipeline_column_x_x_scale",
      "type": "band",
      "domain": {
        "source": "field",
        "data": "source_gallery_heatmap",
        "field": "column",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_row_y_y_scale",
      "type": "band",
      "domain": {
        "source": "field",
        "data": "source_gallery_heatmap",
        "field": "row",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_value_color_color_scale",
      "type": "sequential",
      "domain": {
        "source": "field",
        "data": "source_gallery_heatmap",
        "field": "value",
        "fields": [],
        "includeZero": true,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    }
  ],
  "layers": [
    {
      "id": "pipeline_value_legend_guide-swatches",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_value_legend_guide-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_value_legend_guide-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_heatmap_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_heatmap_cells_layer",
      "mark": "rect",
      "role": "data"
    },
    {
      "id": "pipeline_value_heatmap_values_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_row_labels_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_column_labels_layer",
      "mark": "text",
      "role": "guide"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.heatmap.scene",
  "scales": [
    {
      "id": "pipeline_column_x_x_scale",
      "type": "band",
      "domain": [
        "Bar",
        "Line",
        "Stacked",
        "Heatmap",
        "Point",
        "Histogram",
        "Overview",
        "Small",
        "Map",
        "Treemap",
        "Table"
      ],
      "range": [
        70,
        830
      ],
      "bandwidth": 62.18181818181819
    },
    {
      "id": "pipeline_row_y_y_scale",
      "type": "band",
      "domain": [
        "ChartSpec",
        "Scales",
        "Layers",
        "Glyphs",
        "Inspector"
      ],
      "range": [
        400,
        70
      ],
      "bandwidth": 59.4
    },
    {
      "id": "pipeline_value_color_color_scale",
      "type": "sequential",
      "domain": [
        0,
        157
      ],
      "range": [
        "var(--colors-blue-4)",
        "var(--colors-orange-9)"
      ],
      "ticks": [
        0,
        50,
        100,
        150
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_heatmap_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_heatmap_cells_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 55
    },
    {
      "id": "pipeline_value_heatmap_values_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 55
    },
    {
      "id": "pipeline_row_labels_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_column_labels_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 11
    },
    {
      "id": "pipeline_value_legend_guide-swatches",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 4
    },
    {
      "id": "pipeline_value_legend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 4
    },
    {
      "id": "pipeline_value_legend_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_heatmap_panel_layout_surface

1

pipeline_value_heatmap_cells_layer

55

pipeline_value_heatmap_values_layer

55

pipeline_row_labels_layer

5

pipeline_column_labels_layer

11

pipeline_value_legend_guide-swatches

4

pipeline_value_legend_guide-labels

4

pipeline_value_legend_guide-title

1

Glyph Inspector

none

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