Line Graph

Rebuilds the line chart with a sampled point overlay and month guide labels.

Line Graph
Gallery Line Pipeline pipeline

Data Sources

6

Fields

7

Scales

2

Layers

10

Glyphs

54

rect 2 / line 20 / text 25 / path 1 / point 6

024681012020406080100Month 1: 18 compiled scenesMonth 1: 18 compiled scenesMonth 3: 24 compiled scenesMonth 5: 48 compiled scenesMonth 7: 52 compiled scenesMonth 9: 73 compiled scenesMonth 11: 84 compiled scenesM1M1M2M2M3M3M4M4M5M5M6M6M7M7M8M8M9M9M10M10M11M11M12M12

Build Path

Gallery Line Pipeline

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

Pipeline recipe graph

11 pipelines
12 nodes
21 edges

Data Flow Diagram

0/572 nodes
0/1080 edges
572 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

6 tables
1 transforms

Imported table

source_gallery_line
raw
7 columns
feeds pipeline_sampled_points_transform

ChartSpec

{
  "id": "gallery.line",
  "data": [
    {
      "id": "source_gallery_line",
      "rows": 12
    },
    {
      "id": "source_sampled",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_xgrid_guide",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 6
    }
  ],
  "transforms": [
    {
      "id": "pipeline_sampled_points_transform",
      "type": "sample",
      "input": "source_gallery_line",
      "output": "source_sampled",
      "options": {
        "count": 6,
        "errorMethod": "standardError",
        "fit": "contain",
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "orderField": "index",
        "step": 2
      }
    }
  ],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_index_x_x_scale",
      "orientation": "bottom"
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_value_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_xgrid_guide",
      "scale": "pipeline_index_x_x_scale",
      "orientation": "x"
    },
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_value_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [],
  "fields": [
    "__rowLabel",
    "index",
    "label",
    "value",
    "tooltip",
    "id",
    "sampleIndex"
  ],
  "scales": [
    {
      "id": "pipeline_index_x_x_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_line",
        "field": "index",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_value_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_line",
        "field": "value",
        "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": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_line_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_value_line_line_layer",
      "mark": "path",
      "role": "data",
      "path": {
        "directD": false,
        "areaBand": false,
        "closedToY": false,
        "curve": "linear",
        "sortBy": "index"
      }
    },
    {
      "id": "pipeline_value_line_sample_points_layer",
      "mark": "point",
      "role": "interaction"
    },
    {
      "id": "pipeline_index_labels_layer",
      "mark": "text",
      "role": "guide"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.line.scene",
  "scales": [
    {
      "id": "pipeline_index_x_x_scale",
      "type": "linear",
      "domain": [
        0,
        12
      ],
      "range": [
        70,
        830
      ],
      "ticks": [
        0,
        2,
        4,
        6,
        8,
        10,
        12
      ]
    },
    {
      "id": "pipeline_value_y_y_scale",
      "type": "linear",
      "domain": [
        0,
        100
      ],
      "range": [
        400,
        70
      ],
      "ticks": [
        0,
        20,
        40,
        60,
        80,
        100
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_xgrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 7
    },
    {
      "id": "pipeline_ygrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 6
    },
    {
      "id": "pipeline_value_line_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 7
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 7
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_value_line_line_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_line_sample_points_layer",
      "role": "interaction",
      "zIndex": 30,
      "glyphs": 6
    },
    {
      "id": "pipeline_index_labels_layer",
      "role": "guide",
      "zIndex": 30,
      "glyphs": 12
    }
  ]
}

Glyph Data Tree

10 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_xgrid_guide

7

pipeline_ygrid_guide

6

pipeline_value_line_panel_layout_surface

1

pipeline_xaxis_guide-tick-marks

7

pipeline_xaxis_guide-labels

7

pipeline_yaxis_guide-labels

6

pipeline_value_line_line_layer

1

pipeline_value_line_sample_points_layer

6

pipeline_index_labels_layer

12

Glyph Inspector

none

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