Span Chart

Rebuilds the catalogue span chart with interval rows, horizontal spans, and endpoint points.

Span Chart
Gallery Span Chart Pipeline pipeline

Data Sources

5

Fields

13

Scales

2

Layers

11

Glyphs

35

rect 3 / line 13 / text 9 / point 10

metric spans panel406080AcquisitionActivationRetentionExpansionAdvocacyAcquisition: 42 to 68Activation: 51 to 73Retention: 37 to 62Expansion: 58 to 84Advocacy: 46 to 77acquisition Acquisitionactivation Activationretention Retentionexpansion Expansionadvocacy Advocacyacquisition Acquisitionactivation Activationretention Retentionexpansion Expansionadvocacy Advocacy

Build Path

Gallery Span Chart Pipeline

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

Pipeline recipe graph

10 pipelines
11 nodes
20 edges

Data Flow Diagram

0/369 nodes
0/650 edges
369 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_spanchart
raw
6 columns
feeds pipeline_span_intervals_transform

ChartSpec

{
  "id": "gallery.spanChart",
  "data": [
    {
      "id": "source_gallery_spanchart",
      "rows": 5
    },
    {
      "id": "source_spans",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 3
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 5
    }
  ],
  "transforms": [
    {
      "id": "pipeline_span_intervals_transform",
      "type": "interval",
      "input": "source_gallery_spanchart",
      "output": "source_spans",
      "options": {
        "count": 1,
        "endField": "current",
        "errorMethod": "standardError",
        "fit": "contain",
        "includeMax": true,
        "labelField": "metric",
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "startField": "previous"
      }
    }
  ],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_end_x_x_scale",
      "orientation": "bottom"
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_metric_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_metric_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [],
  "fields": [
    "__rowLabel",
    "previous",
    "current",
    "id",
    "metric",
    "center",
    "duration",
    "durationLabel",
    "end",
    "start",
    "tooltip",
    "value",
    "label"
  ],
  "scales": [
    {
      "id": "pipeline_end_x_x_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_spans",
        "field": "end",
        "fields": [
          "start",
          "end"
        ],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_metric_y_y_scale",
      "type": "band",
      "domain": {
        "source": "field",
        "data": "source_spans",
        "field": "metric",
        "fields": [],
        "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_metric_spans_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_metric_spans_panel_layout_frame",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_metric_spans_panel_layout_label",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_metric_spans_lines_layer",
      "mark": "line",
      "role": "data"
    },
    {
      "id": "pipeline_metric_spans_start_points_layer",
      "mark": "point",
      "role": "data"
    },
    {
      "id": "pipeline_metric_spans_end_points_layer",
      "mark": "point",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.spanChart.scene",
  "scales": [
    {
      "id": "pipeline_end_x_x_scale",
      "type": "linear",
      "domain": [
        30,
        90
      ],
      "range": [
        112,
        722
      ],
      "ticks": [
        40,
        60,
        80
      ]
    },
    {
      "id": "pipeline_metric_y_y_scale",
      "type": "band",
      "domain": [
        "Acquisition",
        "Activation",
        "Retention",
        "Expansion",
        "Advocacy"
      ],
      "range": [
        400,
        70
      ],
      "bandwidth": 59.4
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_ygrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 5
    },
    {
      "id": "pipeline_metric_spans_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_metric_spans_panel_layout_frame",
      "role": "guide",
      "zIndex": 1,
      "glyphs": 1
    },
    {
      "id": "pipeline_metric_spans_panel_layout_label",
      "role": "guide",
      "zIndex": 2,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 3
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 3
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_metric_spans_lines_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_metric_spans_start_points_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_metric_spans_end_points_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 5
    }
  ]
}

Glyph Data Tree

11 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_ygrid_guide

5

pipeline_metric_spans_panel_layout_surface

1

pipeline_metric_spans_panel_layout_frame

1

pipeline_metric_spans_panel_layout_label

1

pipeline_xaxis_guide-tick-marks

3

pipeline_xaxis_guide-labels

3

pipeline_yaxis_guide-labels

5

pipeline_metric_spans_lines_layer

5

pipeline_metric_spans_start_points_layer

5

pipeline_metric_spans_end_points_layer

5

Glyph Inspector

none

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