Box & Whisker Plot

Rebuilds the catalogue box plot with summary rows, centered whiskers, caps, boxes, and median marks.

Box & Whisker Plot
Gallery Box Plot Pipeline pipeline

Data Sources

5

Fields

16

Scales

2

Layers

13

Glyphs

40

rect 7 / line 24 / text 9

score box and whisker panelCore: median 57, IQR 15Growth: median 58, IQR 25Scale: median 67, IQR 18Renewal: median 47, IQR 19CoreGrowthScaleRenewal20406080Core: median 57, IQR 15Growth: median 58, IQR 25Scale: median 67, IQR 18Renewal: median 47, IQR 19Core: median 57, IQR 15Growth: median 58, IQR 25Scale: median 67, IQR 18Renewal: median 47, IQR 19Core: median 57, IQR 15Growth: median 58, IQR 25Scale: median 67, IQR 18Renewal: median 47, IQR 19Core: median 57, IQR 15Growth: median 58, IQR 25Scale: median 67, IQR 18Renewal: median 47, IQR 19

Build Path

Gallery Box Plot Pipeline

This example is rebuilt from gallery data source observations by recipe boxWhisker: 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
26 edges

Data Flow Diagram

0/436 nodes
0/797 edges
436 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_boxwhisker
raw
5 columns
feeds pipeline_quartile_summary_transform

ChartSpec

{
  "id": "gallery.boxWhisker",
  "data": [
    {
      "id": "source_gallery_boxwhisker",
      "rows": 36
    },
    {
      "id": "source_summaries",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 4
    }
  ],
  "transforms": [
    {
      "id": "pipeline_quartile_summary_transform",
      "type": "summary",
      "input": "source_gallery_boxwhisker",
      "output": "source_summaries",
      "options": {
        "count": 1,
        "errorMethod": "standardError",
        "fit": "contain",
        "groupBy": [
          "segment"
        ],
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "value": "score"
      }
    }
  ],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_segment_x_x_scale",
      "orientation": "bottom"
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_median_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_median_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [],
  "fields": [
    "__rowLabel",
    "score",
    "id",
    "segment",
    "count",
    "iqr",
    "max",
    "median",
    "min",
    "q1",
    "q3",
    "tooltip",
    "whiskerMax",
    "whiskerMin",
    "value",
    "label"
  ],
  "scales": [
    {
      "id": "pipeline_segment_x_x_scale",
      "type": "band",
      "domain": {
        "source": "field",
        "data": "source_summaries",
        "field": "segment",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_median_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_summaries",
        "field": "median",
        "fields": [
          "q1",
          "median",
          "q3",
          "whiskerMin",
          "whiskerMax"
        ],
        "includeZero": false,
        "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_score_box_and_whisker_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_score_box_and_whisker_panel_layout_frame",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_score_box_and_whisker_panel_layout_label",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_score_box_and_whisker_whiskers_layer",
      "mark": "line",
      "role": "data"
    },
    {
      "id": "pipeline_score_box_and_whisker_lower_caps_layer",
      "mark": "line",
      "role": "data"
    },
    {
      "id": "pipeline_score_box_and_whisker_upper_caps_layer",
      "mark": "line",
      "role": "data"
    },
    {
      "id": "pipeline_score_box_and_whisker_boxes_layer",
      "mark": "rect",
      "role": "data"
    },
    {
      "id": "pipeline_score_box_and_whisker_medians_layer",
      "mark": "line",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.boxWhisker.scene",
  "scales": [
    {
      "id": "pipeline_segment_x_x_scale",
      "type": "band",
      "domain": [
        "Core",
        "Growth",
        "Scale",
        "Renewal"
      ],
      "range": [
        70,
        830
      ],
      "bandwidth": 171
    },
    {
      "id": "pipeline_median_y_y_scale",
      "type": "linear",
      "domain": [
        20,
        90
      ],
      "range": [
        400,
        70
      ],
      "ticks": [
        20,
        40,
        60,
        80
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_ygrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 4
    },
    {
      "id": "pipeline_score_box_and_whisker_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_score_box_and_whisker_panel_layout_frame",
      "role": "guide",
      "zIndex": 1,
      "glyphs": 1
    },
    {
      "id": "pipeline_score_box_and_whisker_panel_layout_label",
      "role": "guide",
      "zIndex": 2,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 4
    },
    {
      "id": "pipeline_score_box_and_whisker_medians_layer",
      "role": "data",
      "zIndex": 12,
      "glyphs": 4
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 4
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 4
    },
    {
      "id": "pipeline_score_box_and_whisker_whiskers_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 4
    },
    {
      "id": "pipeline_score_box_and_whisker_lower_caps_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 4
    },
    {
      "id": "pipeline_score_box_and_whisker_upper_caps_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 4
    },
    {
      "id": "pipeline_score_box_and_whisker_boxes_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 4
    }
  ]
}

Glyph Data Tree

13 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_ygrid_guide

4

pipeline_score_box_and_whisker_panel_layout_surface

1

pipeline_score_box_and_whisker_panel_layout_frame

1

pipeline_score_box_and_whisker_panel_layout_label

1

pipeline_xaxis_guide-tick-marks

4

pipeline_score_box_and_whisker_medians_layer

4

pipeline_xaxis_guide-labels

4

pipeline_yaxis_guide-labels

4

pipeline_score_box_and_whisker_whiskers_layer

4

pipeline_score_box_and_whisker_lower_caps_layer

4

pipeline_score_box_and_whisker_upper_caps_layer

4

pipeline_score_box_and_whisker_boxes_layer

4

Glyph Inspector

none

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