Candlestick Chart

Rebuilds the catalogue candlestick chart with financial interval rows, wick lines, and centered body rects.

Candlestick Chart
Gallery Candlestick Pipeline pipeline

Data Sources

7

Fields

23

Scales

3

Layers

11

Glyphs

33

rect 10 / line 13 / text 10

Apr 9, 2026Apr 16, 2026951001051101152026-04-06: open 101, high 106, low 99, close 1032026-04-07: open 103, high 112, low 103, close 1122026-04-08: open 112, high 112, low 104, close 1042026-04-09: open 104, high 104, low 95, close 952026-04-10: open 95, high 103, low 95, close 1032026-04-13: open 103, high 111, low 103, close 1102026-04-06: open 101, high 106, low 99, close 1032026-04-07: open 103, high 112, low 103, close 1122026-04-08: open 112, high 112, low 104, close 1042026-04-09: open 104, high 104, low 95, close 952026-04-10: open 95, high 103, low 95, close 1032026-04-13: open 103, high 111, low 103, close 110GainLossSession move

Build Path

Gallery Candlestick Pipeline

This example is rebuilt from gallery data source price-ticks by recipe candlestickChart: 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
20 edges

Data Flow Diagram

0/379 nodes
0/668 edges
379 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

7 tables
1 transforms

Imported table

source_gallery_candlestickchart
raw
6 columns
feeds pipeline_ohlc_intervals_transform

ChartSpec

{
  "id": "gallery.candlestickChart",
  "data": [
    {
      "id": "source_gallery_candlestickchart",
      "rows": 30
    },
    {
      "id": "source_ohlc",
      "rows": 6
    },
    {
      "id": "__guide.pipeline_ygrid_guide",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_xaxis_guide",
      "rows": 2
    },
    {
      "id": "__guide.pipeline_yaxis_guide",
      "rows": 5
    },
    {
      "id": "__guide.pipeline_colorlegend_guide",
      "rows": 2
    },
    {
      "id": "__guide.pipeline_colorlegend_guide.title",
      "rows": 1
    }
  ],
  "transforms": [
    {
      "id": "pipeline_ohlc_intervals_transform",
      "type": "financialInterval",
      "input": "source_gallery_candlestickchart",
      "output": "source_ohlc",
      "options": {
        "count": 1,
        "errorMethod": "standardError",
        "fit": "contain",
        "groupBy": [
          "date"
        ],
        "includeMax": true,
        "layoutKind": "",
        "layoutMode": "proportionalAngle",
        "mode": "normal",
        "order": [],
        "orderField": "sequence",
        "value": "price"
      }
    }
  ],
  "axes": [
    {
      "id": "pipeline_xaxis_guide",
      "scale": "pipeline_date_x_x_scale",
      "orientation": "bottom",
      "tickFormat": {
        "style": "date"
      }
    },
    {
      "id": "pipeline_yaxis_guide",
      "scale": "pipeline_high_y_y_scale",
      "orientation": "left"
    }
  ],
  "grids": [
    {
      "id": "pipeline_ygrid_guide",
      "scale": "pipeline_high_y_y_scale",
      "orientation": "y"
    }
  ],
  "legends": [
    {
      "id": "pipeline_colorlegend_guide",
      "scale": "pipeline_direction_color_color_scale",
      "kind": "color",
      "title": "Session move"
    }
  ],
  "fields": [
    "__rowLabel",
    "price",
    "id",
    "date",
    "sequence",
    "change",
    "changePercent",
    "close",
    "direction",
    "high",
    "low",
    "open",
    "range",
    "tooltip",
    "value",
    "label",
    "x",
    "y",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "pipeline_date_x_x_scale",
      "type": "time",
      "domain": {
        "source": "field",
        "data": "source_ohlc",
        "field": "date",
        "fields": [],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_high_y_y_scale",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "source_ohlc",
        "field": "high",
        "fields": [
          "open",
          "high",
          "low",
          "close"
        ],
        "includeZero": false,
        "order": "input",
        "reverse": false,
        "symmetric": false
      }
    },
    {
      "id": "pipeline_direction_color_color_scale",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "source_ohlc",
        "field": "direction",
        "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": "pipeline_colorlegend_guide-swatches",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "pipeline_colorlegend_guide-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "pipeline_colorlegend_guide-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "create_chart_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_price_candlestick_panel_layout_surface",
      "mark": "rect",
      "role": "context"
    },
    {
      "id": "pipeline_price_candlestick_wicks_layer",
      "mark": "line",
      "role": "data"
    },
    {
      "id": "pipeline_price_candlestick_bodies_layer",
      "mark": "rect",
      "role": "data"
    }
  ]
}

Resolved SceneGraph

{
  "scene": "gallery.candlestickChart.scene",
  "scales": [
    {
      "id": "pipeline_date_x_x_scale",
      "type": "time",
      "domain": [
        "2026-04-06",
        "2026-04-14"
      ],
      "range": [
        62,
        724
      ],
      "ticks": [
        1775692800000,
        1776297600000
      ]
    },
    {
      "id": "pipeline_high_y_y_scale",
      "type": "linear",
      "domain": [
        95,
        115
      ],
      "range": [
        294,
        42
      ],
      "ticks": [
        95,
        100,
        105,
        110,
        115
      ]
    },
    {
      "id": "pipeline_direction_color_color_scale",
      "type": "ordinal",
      "domain": [
        "Gain",
        "Loss"
      ],
      "range": [
        "var(--colors-green-9)",
        "var(--colors-red-9)",
        "var(--colors-gray-8)"
      ]
    }
  ],
  "layers": [
    {
      "id": "create_chart_surface",
      "role": "context",
      "zIndex": -10,
      "glyphs": 1
    },
    {
      "id": "pipeline_ygrid_guide",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 5
    },
    {
      "id": "pipeline_price_candlestick_panel_layout_surface",
      "role": "context",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "pipeline_xaxis_guide-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 2
    },
    {
      "id": "pipeline_xaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 2
    },
    {
      "id": "pipeline_yaxis_guide-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "pipeline_price_candlestick_wicks_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_price_candlestick_bodies_layer",
      "role": "data",
      "zIndex": 20,
      "glyphs": 6
    },
    {
      "id": "pipeline_colorlegend_guide-swatches",
      "role": "guide",
      "zIndex": 40,
      "glyphs": 2
    },
    {
      "id": "pipeline_colorlegend_guide-labels",
      "role": "guide",
      "zIndex": 41,
      "glyphs": 2
    },
    {
      "id": "pipeline_colorlegend_guide-title",
      "role": "guide",
      "zIndex": 42,
      "glyphs": 1
    }
  ]
}

Glyph Data Tree

11 layers

Full parameter lineage for the active compiler surface.

create_chart_surface

1

pipeline_ygrid_guide

5

pipeline_price_candlestick_panel_layout_surface

1

pipeline_xaxis_guide-tick-marks

2

pipeline_xaxis_guide-labels

2

pipeline_yaxis_guide-labels

5

pipeline_price_candlestick_wicks_layer

6

pipeline_price_candlestick_bodies_layer

6

pipeline_colorlegend_guide-swatches

2

pipeline_colorlegend_guide-labels

2

pipeline_colorlegend_guide-title

1

Glyph Inspector

none

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