Arc Diagram

Source-target rows compile into ordered node positions and weighted arc paths.

Arc Diagram
Arc Diagram Pipeline pipeline

Data Sources

5

Fields

19

Scales

1

Layers

9

Glyphs

33

rect 7 / path 7 / point 7 / text 12

Landing to Search: 72Landing to Campaign: 28Search to Product: 64Search to Support: 18Product to Cart: 46Product to Support: 14Cart to Checkout: 35Landing: 100 total linked valueSearch: 154 total linked valueCampaign: 28 total linked valueProduct: 124 total linked valueSupport: 32 total linked valueCart: 81 total linked valueCheckout: 35 total linked valueLandingLandingSearchSearchCampaignCampaignProductProductSupportSupportCartCartCheckoutCheckoutLandingSearchProductCartSource

Build Path

Arc Diagram Pipeline

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

Pipeline recipe graph

9 pipelines
10 nodes
8 edges

Data Flow Diagram

0/342 nodes
0/583 edges
342 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
2 transforms

Imported table

source_gallery_arcdiagram
raw
6 columns
feeds pipeline_arc_node_layout_transform
feeds pipeline_arc_link_layout_transform

ChartSpec

{
  "id": "gallery.arcDiagram",
  "data": [
    {
      "id": "source_gallery_arcdiagram",
      "rows": 7
    },
    {
      "id": "source_arc_nodes",
      "rows": 7
    },
    {
      "id": "source_arc_links",
      "rows": 7
    },
    {
      "id": "__guide.pipeline_source_legend_guide",
      "rows": 4
    },
    {
      "id": "__guide.pipeline_source_legend_guide.title",
      "rows": 1
    }
  ],
  "transforms": [
    {
      "id": "pipeline_arc_node_layout_transform",
      "type": "layout",
      "input": "source_gallery_arcdiagram",
      "output": "source_arc_nodes",
      "options": {
        "endField": "value",
        "errorMethod": "standardError",
        "field": "source",
        "fit": "contain",
        "geometryField": "source",
        "groupBy": [
          "source"
        ],
        "idField": "source",
        "includeMax": false,
        "labelField": "source",
        "layout": "pipeline_plot_layout",
        "layoutKind": "arcDiagramNodes",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "orderField": "source",
        "parentField": "target",
        "seriesBy": "target",
        "sourceField": "source",
        "startField": "target",
        "targetField": "target",
        "value": "value",
        "xField": "target",
        "yField": "value"
      }
    },
    {
      "id": "pipeline_arc_link_layout_transform",
      "type": "layout",
      "input": "source_gallery_arcdiagram",
      "output": "source_arc_links",
      "options": {
        "endField": "value",
        "errorMethod": "standardError",
        "field": "source",
        "fit": "contain",
        "geometryField": "source",
        "groupBy": [
          "source"
        ],
        "idField": "source",
        "includeMax": false,
        "labelField": "source",
        "layout": "pipeline_plot_layout",
        "layoutKind": "arcDiagramLinks",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "orderField": "source",
        "parentField": "target",
        "seriesBy": "target",
        "sourceField": "source",
        "startField": "target",
        "targetField": "target",
        "value": "value",
        "xField": "target",
        "yField": "value"
      }
    }
  ],
  "axes": [],
  "grids": [],
  "legends": [
    {
      "id": "pipeline_source_legend_guide",
      "scale": "pipeline_color_color_scale",
      "kind": "color",
      "title": "Source"
    }
  ],
  "fields": [
    "__rowLabel",
    "id",
    "source",
    "target",
    "value",
    "formatted",
    "label",
    "labelX",
    "labelY",
    "node",
    "r",
    "tooltip",
    "x",
    "y",
    "pathD",
    "strokeWidth",
    "symbolX",
    "symbolY",
    "text"
  ],
  "scales": [
    {
      "id": "pipeline_color_color_scale",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "source_arc_links",
        "field": "source",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    }
  ],
  "layers": [
    {
      "id": "pipeline_source_legend_guide-swatches",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_source_legend_guide-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_source_legend_guide-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_view_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_plot_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_arc_links_layer",
      "mark": "path",
      "role": "data",
      "path": {
        "directD": true,
        "areaBand": false,
        "closedToY": false,
        "curve": "linear",
        "sortBy": ""
      }
    },
    {
      "id": "pipeline_nodes_layer",
      "mark": "point",
      "role": "data"
    },
    {
      "id": "pipeline_node_labels_layer",
      "mark": "text",
      "role": "guide"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.arcDiagram.scene",
  "scales": [
    {
      "id": "pipeline_color_color_scale",
      "type": "ordinal",
      "domain": [
        "Landing",
        "Search",
        "Product",
        "Cart"
      ],
      "range": [
        "var(--colors-blue-9)",
        "var(--colors-green-9)",
        "var(--colors-amber-9)",
        "var(--colors-purple-9)",
        "var(--colors-red-9)"
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_view_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_plot_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_arc_links_layer",
      "role": "data",
      "zIndex": 10,
      "glyphs": 7
    },
    {
      "id": "pipeline_nodes_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 7
    },
    {
      "id": "pipeline_node_labels_layer",
      "role": "guide",
      "zIndex": 30,
      "glyphs": 7
    },
    {
      "id": "pipeline_source_legend_guide-swatches",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 4
    },
    {
      "id": "pipeline_source_legend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 4
    },
    {
      "id": "pipeline_source_legend_guide-title",
      "role": "guide",
      "zIndex": 42,
      "glyphs": 1
    }
  ]
}

Glyph Data Tree

9 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_view_layout_surface

1

pipeline_plot_layout_surface

1

pipeline_arc_links_layer

7

pipeline_nodes_layer

7

pipeline_node_labels_layer

7

pipeline_source_legend_guide-swatches

4

pipeline_source_legend_guide-labels

4

pipeline_source_legend_guide-title

1

Glyph Inspector

none

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