Chartsv26.10.18
Standard edition

Series types

All 26 series types of Unifin Charts - what each one draws, a code sample and a screenshot for every type.

This page lists every series type with a frame and the identifier you pass to the renderer. A type is a single option: you can switch it without touching scales, panes or drawings.

import { Canvas2DRenderer } from '@unifin/chart-core';

renderer.render(context, {
  // frame: bars, scales, theme, sizes
  seriesType: 'candles',
});

The same identifier is accepted by the React prop, the custom element attribute and the render input:

HostHow to set it
Core rendererRenderInput.seriesType
React<UnifinChart seriesType="candles" />
Custom elementseries-type="candles"

Type catalogue

TypeIdentifierBest for
CandlescandlesDefault price chart
Outline candlesoutlineCandlesDense screens, lighter ink
BarsbarsClassic OHLC columns
LinelineClosing prices, clean trends
AreaareaTrend with a sense of magnitude
HistogramhistogramVolumes, seasonality, distributions
StepstepSettlement prices, reference curves
BaselinebaselineAbove and below a reference level
FootprintfootprintVolume clusters inside each bar
RenkorenkoNoise-filtered bricks
KagikagiDemand and supply shifts
Point and figurepointAndFigureX and O breakout columns
Line breaklineBreakThree-line break reversals
Volume candlesvolumeCandlesPrice and liquidity in one column
Line with markerslineWithMarkersSparse series with explicit points
HLC areahlcAreaFull range with a readable close
HLC glowhlcGlowFull range with gradient shading
High-lowhighLowDense range strips
HLC barshlcBarsIndex series without an open
ColumnscolumnsOpen-to-close bodies, dense dashboards
Range columnsrangeCandlesRange bars with their true height
Heikin-Ashi glowheikinAshiGlowSmoothed candles with a richer body
Delta candlesdeltaCandlesBody tone from order flow
Adaptive detailadaptiveOne type for every zoom level
SplinesplineSmooth curves that stay inside the data
LollipoplollipopEvents: dividends, reports, corporate actions

Live type explorer

Pick a type: the chart streams the same engine the frames below come from, so a type can be judged live before reading its block.

Candles

The default view: a body between open and close, wicks for the extremes, colors from the theme tokens.

Candles

seriesType: 'candles';

Outline candles

The same geometry as candles with hollow bodies - lighter on dense screens and in multi-chart layouts.

Outline candles

seriesType: 'outlineCandles';

Bars

OHLC columns for readers who take open and close from the side ticks.

Bars

seriesType: 'bars';

Line

A single polyline over closing prices - the fastest way to read a trend.

Line

seriesType: 'line';

Area

A line with a filled area underneath, useful when the volume pane is not on screen but magnitude matters.

Area

seriesType: 'area';

Histogram

Vertical columns from the baseline; the usual choice for volume panes and distribution studies.

Histogram

seriesType: 'histogram';

Step

A piecewise-constant line: the value holds until the next one arrives. Common for settlement prices and reference rates.

Step

seriesType: 'step';

Baseline

Two zones split by a base level; values above and below it are colored differently.

Baseline

seriesType: 'baseline';

Footprint

Per-price volume clusters inside each bar with point of control, imbalance and absorption cues. The host supplies the per-price data; a narrow bar degrades to a compact delta block.

Footprint

seriesType: 'footprint';

Renko

Bricks of a fixed price size with time ignored: only moves that clear the brick threshold open a new brick. The brick size follows the instrument tick grid unless you pass your own.

Renko

seriesType: 'renko';

Kagi

A single line whose thickness follows the prevailing direction; the line turns when the price reverses past the reversal threshold.

Kagi

seriesType: 'kagi';

Point and figure

Columns of X and O built by price movement with a configurable reversal distance.

Point and figure

seriesType: 'pointAndFigure';

Line break

Three-line break: a reversal column appears only after a strong enough close in the opposite direction.

Line break

seriesType: 'lineBreak';

Volume candles

The body alpha follows a rolling volume average, so quiet bars fade and the busiest bar paints at full strength. Price and liquidity in one column - handy when the volume pane is not on screen.

Volume candles

seriesType: 'volumeCandles';

Line with markers

A closing-price polyline with a dot on every bar. Data gaps restart the line; when the bar slot gets narrow the markers hide and the line stays.

Line with markers

seriesType: 'lineWithMarkers';

HLC area

A ribbon between high and low with the close drawn on top: the band shows the range of every bar while the line keeps the close readable.

HLC area

seriesType: 'hlcArea';

HLC glow

The showcase sibling of the HLC area: the corridor between high and low is filled with a vertical gradient, the area under the close line carries a soft glow, and the close stroke fades towards the oldest bars. On a canvas without gradient support it degrades to the flat HLC area fill.

HLC glow

seriesType: 'hlcGlow';

High-low

One thin vertical segment per bar from high to low in the text color - the volume-profile look for dense daily and intraday strips.

High-low

seriesType: 'highLow';

HLC bars

A high-low stem with a single closing tick on the right. Index series often publish only high, low and close, so the opening tick of the bars type would be noise.

HLC bars

seriesType: 'hlcBars';

Columns

A filled open-to-close column without wicks. It sits between candles (wick plus body) and histogram (one value from a baseline) and reads well in dense dashboards.

Columns

seriesType: 'columns';

Range columns

Range bars already carry a fixed range, so the column height is that range - a row of equal bricks instead of a borrowed candle look.

Range columns

seriesType: 'rangeCandles';

Heikin-Ashi glow

The smoothed Heikin-Ashi candle with a gradient body and a halo outline. The smoothing itself is a data transformation; this type only renders it, so the candle shape stays and the body gets richer.

Heikin-Ashi glow

seriesType: 'heikinAshiGlow';

Delta candles

A candle whose body carries order flow: the tone follows the sign of the bar delta and its saturation the share of that delta in the normaliser - usually the SMA of |delta|, otherwise the mean |delta| of the visible window. Bars without a delta keep the plain candle look, so the type replaces candles on a host that has no footprint feed.

Delta candles

renderer.render(context, {
  // frame: bars, scales, theme, sizes
  seriesType: 'deltaCandles',
  deltas: [-420, 1150, 0, 880], // one value per bar
  deltaSma: 600,               // optional explicit normaliser
});

The tone is a pure function, deltaTone(delta, normaliser, theme), so a bar color can be asserted without a canvas.

Adaptive detail

One type for the whole zoom range: it reads the bar density and picks the readable representation. At six pixels per bar and above it draws the candles, between 2.5 and 6 pixels a high-low ribbon in the direction colour, and below 2.5 pixels the close line plus a thin direction strip at the foot of the plot. The colour of the bars survives every step down, so a compressed chart still reads up and down; a bar without a finite open or close is skipped instead of being tinted by a guess.

Adaptive detail

import { adaptiveDetailMode } from '@unifin/chart-core';

renderer.render(context, {
  // frame: bars, scales, theme, sizes
  seriesType: 'adaptive',
});

adaptiveDetailMode(9);   // 'candles'
adaptiveDetailMode(4);   // 'ribbon'
adaptiveDetailMode(1.5); // 'line'

Spline

The spline type smooths the close line with a monotone cubic interpolation. The curve never leaves the span of its neighbouring points, so a smoothed chart cannot show a price that was never traded - the classic Catmull-Rom spline overshoots on sharp moves and does exactly that. A gap in the data breaks the curve instead of bridging it.

<UnifinChart symbol="AAPL" timeframe="1h" bars={bars} seriesType="spline" spline={{ tension: 0 }} />

Spline series

Lollipop

The lollipop type is the event look: a dot on every bar with a stem down to a baseline. The baseline is the close of the first visible bar, so the frame reads as a move against the start of the period; a host that plots dividends or corporate actions pins its own baseline. Dots of a dense window are thinned out by the dot diameter, so they never merge into a solid band.

<UnifinChart symbol="AAPL" timeframe="1d" bars={events} seriesType="lollipop" lollipop={{ baseline: 0 }} />

Lollipop series

Rendering backends

The Canvas2D renderer draws every type. The optional WebGL2 backend accelerates the five heaviest-traffic types - candles, bars, line, step and area - and falls back to Canvas2D where WebGL2 is unavailable. Custom types registered by the host stay on Canvas2D.

See also

  • Charts - scales, panes and profiles around the series.
  • Analytics kits - analytic series on a non-time axis.
  • API overview - the renderer input and the React props.

On this page