Bar Chart

Rebuilds the catalogue bar chart as band/value scale chunks plus rect marks.

Bar Chart
Gallery Bar Pipeline pipeline

Data Sources

4

Fields

6

Scales

2

Layers

7

Glyphs

105

rect 33 / line 36 / text 36

1234567891011121314151617181920212223242526272829303105101520Category 1: 5 category-1Category 2: 10 category-2Category 3: 8 category-3Category 4: 3 category-4Category 5: 15 category-5Category 6: 13 category-6Category 7: 16 category-7Category 8: 6 category-8Category 9: 20 category-9Category 10: 7 category-10Category 11: 11 category-11Category 12: 18 category-12Category 13: 17 category-13Category 14: 9 category-14Category 15: 16 category-15Category 16: 14 category-16Category 17: 4 category-17Category 18: 19 category-18Category 19: 12.5 category-19Category 20: 8 category-20Category 21: 15 category-21Category 22: 14.5 category-22Category 23: 16 category-23Category 24: 2 category-24Category 25: 5 category-25Category 26: 2 category-26Category 27: 10.5 category-27Category 28: 8 category-28Category 29: 17 category-29Category 30: 12 category-30Category 31: 6 category-31

Build Path

Gallery Bar Pipeline

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

Pipeline recipe graph

7 pipelines
8 nodes
13 edges

Data Flow Diagram

0/1051 nodes
0/2091 edges
1051 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
0 transforms

Imported table

source_gallery_bar
raw
7 columns

ChartSpec

{
  "id": "gallery.bar",
  "data": [
    {
      "id": "source_gallery_bar",
      "rows": 31
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 31
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 5
    }
  ],
  "transforms": [],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_label_x_x_scale",
      "orientation": "bottom"
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_value_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_value_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [],
  "fields": [
    "__rowLabel",
    "label",
    "value",
    "formatted",
    "tooltip",
    "id"
  ],
  "scales": [
    {
      "id": "pipeline_label_x_x_scale",
      "type": "band",
      "domain": {
        "source": "field",
        "data": "source_gallery_bar",
        "field": "label",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_value_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_bar",
        "field": "value",
        "fields": [],
        "includeZero": true,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    }
  ],
  "layers": [
    {
      "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": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_by_label_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_by_label_bars_layer",
      "mark": "rect",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.bar.scene",
  "scales": [
    {
      "id": "pipeline_label_x_x_scale",
      "type": "band",
      "domain": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21,
        22,
        23,
        24,
        25,
        26,
        27,
        28,
        29,
        30,
        31
      ],
      "range": [
        70,
        830
      ],
      "bandwidth": 22.06451612903226
    },
    {
      "id": "pipeline_value_y_y_scale",
      "type": "linear",
      "domain": [
        0,
        20
      ],
      "range": [
        400,
        70
      ],
      "ticks": [
        0,
        5,
        10,
        15,
        20
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_ygrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 5
    },
    {
      "id": "pipeline_value_by_label_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 31
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 31
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_value_by_label_bars_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 31
    }
  ]
}

Glyph Data Tree

7 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_ygrid_guide

5

pipeline_value_by_label_panel_layout_surface

1

pipeline_xaxis_guide-tick-marks

31

pipeline_xaxis_guide-labels

31

pipeline_yaxis_guide-labels

5

pipeline_value_by_label_bars_layer

31

Glyph Inspector

none

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