Area Graph

Rebuilds the area chart with area and line paths, endpoint samples, and month guide labels.

Area Graph
Gallery Area Pipeline pipeline

Data Sources

6

Fields

8

Scales

2

Layers

11

Glyphs

53

rect 2 / line 21 / path 2 / text 26 / point 2

Month 1: 18k visits024681012020406080100120Month 1: 18k visitsMonth 1: 18k visitsMonth 12: 104k visitsM1M1M2M2M3M3M4M4M5M5M6M6M7M7M8M8M9M9M10M10M11M11M12M12

Build Path

Gallery Area Pipeline

This example is rebuilt from gallery data source points by recipe areaGraph: 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
24 edges

Data Flow Diagram

0/570 nodes
0/1068 edges
570 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_areagraph
raw
8 columns
feeds pipeline_sampled_points_transform

ChartSpec

{
  "id": "gallery.areaGraph",
  "data": [
    {
      "id": "source_gallery_areagraph",
      "rows": 12
    },
    {
      "id": "source_sampled",
      "rows": 2
    },
    {
      "id": "__guide.pipeline_xgrid_guide",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 7
    }
  ],
  "transforms": [
    {
      "id": "pipeline_sampled_points_transform",
      "type": "sample",
      "input": "source_gallery_areagraph",
      "output": "source_sampled",
      "options": {
        "count": 2,
        "errorMethod": "standardError",
        "fit": "contain",
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "orderField": "index"
      }
    }
  ],
  "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",
    "formatted",
    "tooltip",
    "id",
    "sampleIndex"
  ],
  "scales": [
    {
      "id": "pipeline_index_x_x_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_gallery_areagraph",
        "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_areagraph",
        "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_area_layer",
      "mark": "path",
      "role": "data",
      "path": {
        "directD": false,
        "areaBand": false,
        "closedToY": true,
        "curve": "linear",
        "sortBy": "index"
      }
    },
    {
      "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.areaGraph.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,
        120
      ],
      "range": [
        400,
        70
      ],
      "ticks": [
        0,
        20,
        40,
        60,
        80,
        100,
        120
      ]
    }
  ],
  "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": 7
    },
    {
      "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_value_line_area_layer",
      "role": "data",
      "zIndex": 10,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 7
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 7
    },
    {
      "id": "pipeline_value_line_line_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 1
    },
    {
      "id": "pipeline_value_line_sample_points_layer",
      "role": "interaction",
      "zIndex": 30,
      "glyphs": 2
    },
    {
      "id": "pipeline_index_labels_layer",
      "role": "guide",
      "zIndex": 30,
      "glyphs": 12
    }
  ]
}

Glyph Data Tree

11 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_xgrid_guide

7

pipeline_ygrid_guide

7

pipeline_value_line_panel_layout_surface

1

pipeline_xaxis_guide-tick-marks

7

pipeline_value_line_area_layer

1

pipeline_xaxis_guide-labels

7

pipeline_yaxis_guide-labels

7

pipeline_value_line_line_layer

1

pipeline_value_line_sample_points_layer

2

pipeline_index_labels_layer

12

Glyph Inspector

none

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