Product Table

Raw product metrics and column config derive row positions, headers, and formatted cells.

Product Table
Product Table Pipeline pipeline

Data Sources

6

Fields

21

Scales

1

Layers

12

Glyphs

40

rect 9 / line 1 / text 30

table-frameheader-ruleTrail Jacket: $18,420Linen Sheet Set: $16,280Everyday Serum: $15,140Noise Cancelling Earbuds: $13,880Organic Snack Box: $12,460ProductProductCategoryCategoryRevenueRevenueMarginMarginReturnsReturnsTrail JacketTrail JacketLinen Sheet SetLinen Sheet SetEveryday SerumEveryday SerumNoise Cancelling EarbudsNoise Cancelling EarbudsOrganic Snack BoxOrganic Snack BoxOutdoorOutdoorHomeHomeBeautyBeautyElectronicsElectronicsGroceryGrocery$18,420$18,420$16,280$16,280$15,140$15,140$13,880$13,880$12,460$12,46042%42%37%37%49%49%29%29%24%24%6%6%4%4%3%3%9%9%2%2%

Build Path

Product Table Pipeline

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

Pipeline recipe graph

17 pipelines
17 nodes
10 edges

Data Flow Diagram

0/502 nodes
0/846 edges
502 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
0 transforms

Imported table

source_gallery_table
raw
8 columns

ChartSpec

{
  "id": "gallery.table",
  "data": [
    {
      "id": "source_gallery_table",
      "rows": 5
    },
    {
      "id": "pipeline_table_product_rows_source",
      "rows": 5
    },
    {
      "id": "pipeline_column_config_source",
      "rows": 5
    },
    {
      "id": "pipeline_table_headers_source",
      "rows": 5
    },
    {
      "id": "pipeline_table_frame_layer_constants_source",
      "rows": 1
    },
    {
      "id": "pipeline_header_rule_layer_constants_source",
      "rows": 1
    }
  ],
  "transforms": [],
  "axes": [],
  "grids": [],
  "legends": [],
  "fields": [
    "__rowLabel",
    "id",
    "product",
    "category",
    "revenue",
    "margin",
    "returns",
    "centerY",
    "formattedMargin",
    "formattedReturns",
    "formattedRevenue",
    "tooltip",
    "y",
    "label",
    "width",
    "x",
    "height",
    "x1",
    "x2",
    "y1",
    "y2"
  ],
  "scales": [
    {
      "id": "pipeline_rowfill_color_scale",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "pipeline_table_product_rows_source",
        "field": "category",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    }
  ],
  "layers": [
    {
      "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_table_frame_layer",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_header_rule_layer",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "pipeline_row_backgrounds_layer",
      "mark": "rect",
      "role": "data"
    },
    {
      "id": "pipeline_headers_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_product_cells_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_category_cells_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_revenue_cells_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_margin_cells_layer",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_return_cells_layer",
      "mark": "text",
      "role": "guide"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.table.scene",
  "scales": [
    {
      "id": "pipeline_rowfill_color_scale",
      "type": "ordinal",
      "domain": [
        "Outdoor",
        "Home",
        "Beauty",
        "Electronics",
        "Grocery"
      ],
      "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_table_frame_layer",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_header_rule_layer",
      "role": "guide",
      "zIndex": 2,
      "glyphs": 1
    },
    {
      "id": "pipeline_row_backgrounds_layer",
      "role": "data",
      "zIndex": 5,
      "glyphs": 5
    },
    {
      "id": "pipeline_headers_layer",
      "role": "guide",
      "zIndex": 10,
      "glyphs": 5
    },
    {
      "id": "pipeline_product_cells_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_category_cells_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_revenue_cells_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_margin_cells_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_return_cells_layer",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    }
  ]
}

Glyph Data Tree

12 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_view_layout_surface

1

pipeline_plot_layout_surface

1

pipeline_table_frame_layer

1

pipeline_header_rule_layer

1

pipeline_row_backgrounds_layer

5

pipeline_headers_layer

5

pipeline_product_cells_layer

5

pipeline_category_cells_layer

5

pipeline_revenue_cells_layer

5

pipeline_margin_cells_layer

5

pipeline_return_cells_layer

5

Glyph Inspector

none

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