Chartsv26.10.18
Standard edition

Features

What Unifin Charts includes - rendering, scales, panes, data, indicators, drawings, profiles, order flow, alerts, trading UI, accessibility and performance, with the edition each area belongs to.

This page maps the feature areas of the library to the entry point that ships them: Standard (@unifin/chart-react/standard) for base charting and Pro (@unifin/chart-react/pro) for the professional workspace. The framework-free core is shared by both.

Areas

AreaStandardPro
RenderingCanvas2D and optional WebGL2, profiles, palettes, volume and legend layersPanels and figures on the same painters
Scales and panesFive scale modes, stacked panes, volume pane presetMulti-chart layouts and sync groups
DataBars, ticks, resampling, pageable feeds, caching, reconnect-
IndicatorsRegistry-driven engine, 128 studies, host overlaysFormula studio and template catalogue
Drawings96 tools, undo and redo, templates, snapshots, share linksObject tree and bulk actions
Volume profile and order flow-Profile, clusters, ladder, tape, heatmap, order book chart
Alerts-Rule builder, groups, templates, retry policy
Trading UI-Order ticket, risk ruler, draggable levels, paper broker
Workspace and replay-Layouts, command palette, market replay
Chart chromeWatermark, grid styles, legend, events, price lines, A-B ruler, panningQuote header
Look packBackdrops, bar palettes, volume tones, readout skins-
Accessibility and themingTokens, six palettes, keyboard and ARIA, locale packsPanels on the same controls
PerformanceFrame budgets, decimation, tilesWorker rendering, WASM pilot

Rendering

  • Canvas2D renderer with dirty-region repainting and device-pixel-ratio aware text.
  • Optional WebGL2 backend for the five heaviest-traffic series types, with automatic fallback.
  • Four presentation profiles: sparkline, mini, standard, terminal.
  • Six token-based palettes - dark, light, corporate, capitalMarkets, orange, unifin - plus the system alias and white-label hosts; the registry is public (CHART_THEMES, resolveThemeByName).
  • Optional volume columns and an OHLCV legend layer; empty, loading and error states adapt to the pane size.
  • Live presets on the custom element: a sheen sweep, a cursor glow and sparks that follow the newest close (Live effects).

Scales and panes

ItemDetails
Price scale modeslinear, log, percentage, indexedTo100, volume
Time scalesSeconds to monthly bars, session-aware labels
PanesUp to 16 stacked panes, drag handle, shared time scale, per-pane price scale
Axis sideRenderInput.priceScalePosition: 'left' | 'right' (default right)
Volume paneaddVolumePane(layout) gives the strip its own volume scale and shared time

Left price axis: candles shifted to the right

Pro adds ChartGrid for multi-chart layouts and sync groups that tie the crosshair and the visible range across charts, including layout persistence.

Data

  • Bars and ticks; resampling between timeframes is built in.
  • Pageable Datafeed interface with a memory adapter for tests and a market-data adapter for REST, SSE and STOMP transports.
  • Bar cache, idempotent reconnect and deterministic ordering.
  • Split and dividend adjustments for histories; calendar events (dividends, splits, reports) map onto the bar axis.

Events

Fifty-plus typed events cover viewports, crosshair, drawings, alerts, delivery, replay, order lines, paper trading, indicators and data gaps. Every stream uses one pattern: the subscribe call returns an unsubscribe function, listeners are isolated from each other, and idle operations stay silent.

Indicators

  • Registry-driven engine: parameters, panes, styles and legends come from descriptors.
  • Incremental recalculation - updating one bar recalculates the affected tail only.
  • A catalogue of 128 studies: moving averages, oscillators, volatility bands, volume studies, relative strength and more - see Indicators.
  • Host-computed overlays draw on top of the price series without registering a study.

Indicator studies on a dark chart

Indicator studies on a light chart

Drawings

  • 96 tools: lines, channels, Fibonacci, Gann, shapes, patterns, measurement, positions.
  • Anchors snap to bars and prices; magnet mode aligns to OHLC values.
  • Undo and redo history, template library, JSON snapshots with tolerant parsing, compact share links.

Fibonacci retracements

Volume profile and order flow

  • Volume profile with POC, value area, histogram rows, step control and composite profiles.
  • Cluster and footprint views with per-price volume, imbalance and absorption cues.
  • Ladder and tape models with cumulative delta, plus a book heatmap that coarsens over long sessions.
  • Order book chart with five canvas variants (depth area, depth histogram, ladder, heatmap, imbalance) - see Order book chart.

Order flow workspace

Analytic figures

Waterfall, bullet, box plot, fan chart and the shared heatmap painter plot values on a domain axis instead of a clock. They read one paint input, take colors from the theme and the look pack, and degrade to flat fills without gradients - see Analytic figures.

Alerts

  • Rule conditions over price, indicators and drawing objects.
  • Message templates with named placeholders and locale defaults.
  • Retry with exponential backoff and jitter; delivery plugs into the host channels.

Trading UI

  • Order ticket with six order types: LIMIT, MARKET, STOP_LIMIT, TAKE_PROFIT, FOK, IOC.
  • Risk ruler: drag to measure reward-to-risk, levels snap to the price grid.
  • Stop and take levels draggable on the chart; positions and profit are drawn in the pane.
  • Pending order lines draggable on the chart with a version journal.
  • Paper broker and session report for rehearsal; read-only modes for view-only roles.

Dashboard with positions

Workspace and replay

  • Multi-pane terminal layouts with a command palette.
  • One control kit: toolbar, buttons, inputs, dialogs, menus and tooltips shared by every panel.
  • Market replay with speed control, seeking and recording serialization.
  • Formula studio: validate and preview custom formulas before saving them to the catalogue.
  • Template catalogue: ten starter workspaces with revisions, JSON import and export, and share codes.

Professional workspace

Market replay

Comparison grid

Chart chrome and measurement

These options are off by default; each one exists as a React prop, an element attribute and a render input - the attribution mark is the exception: it is a React prop of the Standard surface.

OptionWhat it adds
watermark, watermarkPosition, watermarkImageThe ticker stamp in the centre or the bottom-left corner, plus a host image for a white-label mark
attributionThe Unifin mark with the link to the site in the chart corner; on by default, false is the white-label Pro setting
gridStyle, gridPeriodDotted grid lines, and a brighter divider where a month, quarter or year opens
legendThe compact OHLCV row with a ticker heading and a collapse chevron
eventsThe corporate-event lane above the time axis with badges and a detail card
priceLinesPrice and alert lines with an axis tag, an optional padlock and a hover highlight
measureA pinned A-B ruler: delta in price and percent, span in bars and time
volume.tagThe value tag of the newest volume column
polish.leftFadeThe history fade at the left edge, so the newest bars read as "now"
QuoteHeaderThe instrument strip above a chart: bid, ask, spread, last price and change

Panning is public: panByPixels and panByBars on the React result, on the binding and on the element turn a swipe or a trackpad delta into calls. The canvas keeps touch gestures with pointer capture. The full lists live on the React API and core API pages.

Look pack and skins

One look object groups the presentation choices: backdrop, bar palette, volume tone, gradient stroke and readout skin. Every field is optional and additive - without it the chart keeps the flat rendering, and the classic palette always resolves to the live theme colors, so a white-label shell stays repaintable through its tokens.

Timeframe
OptionWhat it changes
look.backdropflat, gradient or aurora (accent glow from the top-right corner)
look.barsclassic, neon, sunset, ice or mono - the up and down pair
look.barGradientGradient bodies, bright at the top towards the palette tail
look.volumeTone, look.volumeAlphaThe volume band reads as a separate layer with its own tone and opacity
look.indicatorGradientTapers the stroke of line, step, area and indicator curves
look.readoutSkinThe OHLC readout row as plain columns, chip pills or cards boxes
look.fontonest, inter, serif, mono or any literal font stack

Every control of Live effects maps to one of these fields, and each field is also an attribute of the custom element (backdrop, bars-style, volume-tone, volume-alpha, indicator-gradient, readout-skin, font).

Timeframes

The switcher above changes the step without reloading a feed: the scene keeps a one-minute base and rebuilds the window through the public resample of the core - open is the first bar of the bucket, close the last, high and low the extremes, volume the sum. The window is sliced to a steady bar count, so a coarse step shows fewer, wider bars. On the custom element the same switch is the timeframe attribute and repaints with a short crossfade.

Accessibility and theming

  • Theme tokens drive every color; swapping a palette does not touch layout.
  • Six palettes ship in the registry - dark, light, corporate, capitalMarkets, orange, unifin - plus the system alias; every palette is checked for WCAG AA text contrast in the core test suite.
  • Host tokens cover palette, radius, font and row density (compact / normal).
  • Keyboard focus, roles and ARIA labels are wired on the custom element and the React components.
  • Animated transitions respect reduced-motion preferences.
  • Locale packs for Russian, English, Kazakh and Uzbek across the core and the kits.

Accessibility pass

Performance

  • Frame budgets are enforced with in-repo benchmarks: interactive charts stay inside the per-frame compute budget on a full-size window.
  • Decimation and tile ranges keep hundreds of millions of bars scrollable.
  • Optional worker rendering moves painting off the main thread; an experimental WASM path accelerates the heaviest studies with a parity check against the reference implementation.

Performance workspace

See also

On this page