Histogram

Rebuilds the catalogue histogram as a bin transform plus interval rect marks.

Histogram
Gallery Histogram Pipeline pipeline

Data Sources

5

Fields

10

Scales

2

Layers

7

Glyphs

39

rect 19 / line 10 / text 10

0510152005101520Interval 1: 1 observationsInterval 2: 2 observationsInterval 3: 2 observationsInterval 4: 3 observationsInterval 5: 7 observationsInterval 6: 9 observationsInterval 7: 8 observationsInterval 8: 17 observationsInterval 9: 20 observationsInterval 10: 16 observationsInterval 11: 15 observationsInterval 12: 11 observationsInterval 13: 6 observationsInterval 14: 3 observationsInterval 15: 2 observationsInterval 16: 2 observationsInterval 17: 1 observations

Build Path

Gallery Histogram Pipeline

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

Pipeline recipe graph

8 pipelines
9 nodes
14 edges

Data Flow Diagram

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

5 tables
1 transforms

Imported table

source_gallery_histogram
raw
4 columns
feeds pipeline_ordervalue_bins_transform

ChartSpec

{
  "id": "gallery.histogram",
  "data": [
    {
      "id": "source_gallery_histogram",
      "rows": 125
    },
    {
      "id": "source_bins",
      "rows": 17
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 5
    }
  ],
  "transforms": [
    {
      "id": "pipeline_ordervalue_bins_transform",
      "type": "bin",
      "input": "source_gallery_histogram",
      "output": "source_bins",
      "options": {
        "count": 17,
        "end": 17,
        "errorMethod": "standardError",
        "field": "ordervalue",
        "fit": "contain",
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "start": 0
      }
    }
  ],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_max_x_x_scale",
      "orientation": "bottom"
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_count_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_count_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [],
  "fields": [
    "__rowLabel",
    "id",
    "ordervalue",
    "count",
    "formatted",
    "label",
    "max",
    "min",
    "tooltip",
    "value"
  ],
  "scales": [
    {
      "id": "pipeline_max_x_x_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_bins",
        "field": "max",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_count_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_bins",
        "field": "count",
        "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_ordervalue_histogram_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_ordervalue_histogram_bars_layer",
      "mark": "rect",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.histogram.scene",
  "scales": [
    {
      "id": "pipeline_max_x_x_scale",
      "type": "linear",
      "domain": [
        0,
        20
      ],
      "range": [
        70,
        830
      ],
      "ticks": [
        0,
        5,
        10,
        15,
        20
      ]
    },
    {
      "id": "pipeline_count_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_ordervalue_histogram_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 5
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_ordervalue_histogram_bars_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 17
    }
  ]
}

Glyph Data Tree

7 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_ygrid_guide

5

pipeline_ordervalue_histogram_panel_layout_surface

1

pipeline_xaxis_guide-tick-marks

5

pipeline_xaxis_guide-labels

5

pipeline_yaxis_guide-labels

5

pipeline_ordervalue_histogram_bars_layer

17

Glyph Inspector

none

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