Symbol Map

Rebuilds the symbol map with manual lon/lat domains, size and color scales, grid guides, points, and labels.

Symbol Map
Gallery Symbol Map Pipeline pipeline

Data Sources

7

Fields

17

Scales

4

Layers

14

Glyphs

40

rect 7 / line 10 / text 15 / point 8

revenue symbol map panelSeattle: $82,000 in WestLos Angeles: $96,000 in WestDenver: $68,000 in CentralChicago: $88,000 in CentralAtlanta: $58,000 in SouthNew York: $104,000 in EastSeattleSeattleLos AngelesLos AngelesDenverDenverChicagoChicagoAtlantaAtlantaNew YorkNew YorkWestCentralSouthEast70100regionrevenue

Build Path

Gallery Symbol Map Pipeline

This example is rebuilt from gallery data source stores by recipe symbolMap: 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
20 edges

Data Flow Diagram

0/431 nodes
0/761 edges
431 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

7 tables
0 transforms

Imported table

source_gallery_symbolmap
raw
9 columns

ChartSpec

{
  "id": "gallery.symbolMap",
  "data": [
    {
      "id": "source_gallery_symbolmap",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_xgrid_guide",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_colorlegend_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_colorlegend_guide.title",
      "rows": 1
    },
    {
      "id": "__guide.pipeline_sizelegend_guide",
      "rows": 2
    },
    {
      "id": "__guide.pipeline_sizelegend_guide.title",
      "rows": 1
    }
  ],
  "transforms": [],
  "axes": [],
  "grids": [
    {
      "id": "pipeline_xgrid_guide",
      "scale": "pipeline_lon_x_x_scale",
      "orientation": "x"
    },
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_lat_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [
    {
      "id": "pipeline_colorlegend_guide",
      "scale": "pipeline_region_color_color_scale",
      "kind": "color",
      "title": "region"
    },
    {
      "id": "pipeline_sizelegend_guide",
      "scale": "pipeline_revenue_size_size_scale",
      "kind": "size",
      "title": "revenue",
      "values": [
        70,
        100
      ]
    }
  ],
  "fields": [
    "__rowLabel",
    "store",
    "region",
    "lon",
    "lat",
    "revenue",
    "tooltip",
    "id",
    "value",
    "label",
    "x",
    "y",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "pipeline_lon_x_x_scale",
      "type": "linear",
      "domain": {
        "source": "values",
        "values": [
          -125,
          -70
        ],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_lat_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "values",
        "values": [
          30,
          48
        ],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_revenue_size_size_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_symbolmap",
        "field": "revenue",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_region_color_color_scale",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "source_gallery_symbolmap",
        "field": "region",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    }
  ],
  "layers": [
    {
      "id": "pipeline_xgrid_guide",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "pipeline_ygrid_guide",
      "mark": "line",
      "role": "guide"
    },
    {
      "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": "pipeline_sizelegend_guide-symbols",
      "mark": "point",
      "role": "guide"
    },
    {
      "id": "pipeline_sizelegend_guide-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_sizelegend_guide-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_revenue_symbol_map_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_revenue_symbol_map_panel_layout_frame",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_revenue_symbol_map_panel_layout_label",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_revenue_symbol_map_stores_layer",
      "mark": "point",
      "role": "data"
    },
    {
      "id": "pipeline_revenue_symbol_map_labels_layer",
      "mark": "text",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.symbolMap.scene",
  "scales": [
    {
      "id": "pipeline_lon_x_x_scale",
      "type": "linear",
      "domain": [
        -125,
        -70
      ],
      "range": [
        44,
        684
      ],
      "ticks": [
        -120,
        -110,
        -100,
        -90,
        -80,
        -70
      ]
    },
    {
      "id": "pipeline_lat_y_y_scale",
      "type": "linear",
      "domain": [
        30,
        48
      ],
      "range": [
        332,
        26
      ],
      "ticks": [
        30,
        35,
        40,
        45
      ]
    },
    {
      "id": "pipeline_revenue_size_size_scale",
      "type": "linear",
      "domain": [
        50,
        110
      ],
      "range": [
        9,
        28
      ],
      "ticks": [
        60,
        80,
        100
      ]
    },
    {
      "id": "pipeline_region_color_color_scale",
      "type": "ordinal",
      "domain": [
        "West",
        "Central",
        "South",
        "East"
      ],
      "range": [
        "var(--colors-blue-9)",
        "var(--colors-green-9)",
        "var(--colors-orange-9)",
        "var(--colors-purple-9)"
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_xgrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 6
    },
    {
      "id": "pipeline_ygrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 4
    },
    {
      "id": "pipeline_revenue_symbol_map_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_revenue_symbol_map_panel_layout_frame",
      "role": "guide",
      "zIndex": 1,
      "glyphs": 1
    },
    {
      "id": "pipeline_revenue_symbol_map_panel_layout_label",
      "role": "guide",
      "zIndex": 2,
      "glyphs": 1
    },
    {
      "id": "pipeline_revenue_symbol_map_stores_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_revenue_symbol_map_labels_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_colorlegend_guide-swatches",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 4
    },
    {
      "id": "pipeline_sizelegend_guide-symbols",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 2
    },
    {
      "id": "pipeline_colorlegend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 4
    },
    {
      "id": "pipeline_sizelegend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 2
    },
    {
      "id": "pipeline_colorlegend_guide-title",
      "role": "guide",
      "zIndex": 42,
      "glyphs": 1
    },
    {
      "id": "pipeline_sizelegend_guide-title",
      "role": "guide",
      "zIndex": 42,
      "glyphs": 1
    }
  ]
}

Glyph Data Tree

14 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_xgrid_guide

6

pipeline_ygrid_guide

4

pipeline_revenue_symbol_map_panel_layout_surface

1

pipeline_revenue_symbol_map_panel_layout_frame

1

pipeline_revenue_symbol_map_panel_layout_label

1

pipeline_revenue_symbol_map_stores_layer

6

pipeline_revenue_symbol_map_labels_layer

6

pipeline_colorlegend_guide-swatches

4

pipeline_sizelegend_guide-symbols

2

pipeline_colorlegend_guide-labels

4

pipeline_sizelegend_guide-labels

2

pipeline_colorlegend_guide-title

1

pipeline_sizelegend_guide-title

1

Glyph Inspector

none

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