Bubble Chart

Rebuilds the catalogue bubble chart with Cartesian point marks, radius scale, color scale, and legends.

Bubble Chart
Gallery Bubble Pipeline pipeline

Data Sources

9

Fields

16

Scales

4

Layers

14

Glyphs

64

rect 6 / line 18 / text 25 / point 15

020406080100020406080100North Enterprise: 920 accountsNorth Consumer: 420 accountsSouth Enterprise: 780 accountsSouth Consumer: 560 accountsWest Enterprise: 1,040 accountsWest Consumer: 610 accountsEast Enterprise: 870 accountsEast Consumer: 510 accountsNorthSouthWestEast02004006008001,0001,200regionsize

Build Path

Gallery Bubble Pipeline

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

Pipeline recipe graph

12 pipelines
13 nodes
21 edges

Data Flow Diagram

0/624 nodes
0/1139 edges
624 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

9 tables
0 transforms

Imported table

source_gallery_bubblechart
raw
10 columns

ChartSpec

{
  "id": "gallery.bubbleChart",
  "data": [
    {
      "id": "source_gallery_bubblechart",
      "rows": 8
    },
    {
      "id": "__guide.pipeline_xgrid_guide",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_colorlegend_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_colorlegend_guide.title",
      "rows": 1
    },
    {
      "id": "__guide.pipeline_sizelegend_guide",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_sizelegend_guide.title",
      "rows": 1
    }
  ],
  "transforms": [],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_x_x_x_scale",
      "orientation": "bottom"
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_y_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_xgrid_guide",
      "scale": "pipeline_x_x_x_scale",
      "orientation": "x"
    },
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_y_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_size_size_size_scale",
      "kind": "size",
      "title": "size"
    }
  ],
  "fields": [
    "__rowLabel",
    "region",
    "segment",
    "x",
    "y",
    "size",
    "formattedsize",
    "tooltip",
    "id",
    "value",
    "label",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "pipeline_x_x_x_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_bubblechart",
        "field": "x",
        "fields": [],
        "includeZero": true,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_y_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_bubblechart",
        "field": "y",
        "fields": [],
        "includeZero": true,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_region_color_color_scale",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "source_gallery_bubblechart",
        "field": "region",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_size_size_size_scale",
      "type": "sqrt",
      "domain": {
        "source": "field",
        "data": "source_gallery_bubblechart",
        "field": "size",
        "fields": [],
        "includeZero": true,
        "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_xaxis_guide-tick-marks",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "mark": "text",
      "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_y_by_x_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_y_by_x_points_layer",
      "mark": "point",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.bubbleChart.scene",
  "scales": [
    {
      "id": "pipeline_x_x_x_scale",
      "type": "linear",
      "domain": [
        0,
        100
      ],
      "range": [
        70,
        830
      ],
      "ticks": [
        0,
        20,
        40,
        60,
        80,
        100
      ]
    },
    {
      "id": "pipeline_y_y_y_scale",
      "type": "linear",
      "domain": [
        0,
        100
      ],
      "range": [
        400,
        70
      ],
      "ticks": [
        0,
        20,
        40,
        60,
        80,
        100
      ]
    },
    {
      "id": "pipeline_region_color_color_scale",
      "type": "ordinal",
      "domain": [
        "North",
        "South",
        "West",
        "East"
      ],
      "range": [
        "var(--colors-blue-9)",
        "var(--colors-green-9)",
        "var(--colors-orange-9)",
        "var(--colors-purple-9)"
      ]
    },
    {
      "id": "pipeline_size_size_size_scale",
      "type": "sqrt",
      "domain": [
        0,
        1200
      ],
      "range": [
        9,
        29
      ],
      "ticks": [
        0,
        200,
        400,
        600,
        800,
        1000,
        1200
      ]
    }
  ],
  "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": 6
    },
    {
      "id": "pipeline_y_by_x_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 6
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_y_by_x_points_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 8
    },
    {
      "id": "pipeline_colorlegend_guide-swatches",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 4
    },
    {
      "id": "pipeline_sizelegend_guide-symbols",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 7
    },
    {
      "id": "pipeline_colorlegend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 4
    },
    {
      "id": "pipeline_sizelegend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 7
    },
    {
      "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

6

pipeline_y_by_x_panel_layout_surface

1

pipeline_xaxis_guide-tick-marks

6

pipeline_xaxis_guide-labels

6

pipeline_yaxis_guide-labels

6

pipeline_y_by_x_points_layer

8

pipeline_colorlegend_guide-swatches

4

pipeline_sizelegend_guide-symbols

7

pipeline_colorlegend_guide-labels

4

pipeline_sizelegend_guide-labels

7

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.