Pro effects
What the Pro edition adds on screen - the order book, the terminal panels, the risk figures, the desk surfaces - and the look engine driven at desk strength with the volume effects, the gradients, the presets and the replay.
The Pro edition does not replace the chart. It adds its own surfaces on top of the same engine, and this page keeps the groups apart: first the surfaces only Pro ships, then the look engine driven at desk strength.
What is unique to Pro
Every export below ships only in the Pro entry point @unifin/chart-react/pro. The Standard entries do
not carry these modules at all.
| Group | Pro entry exports | What it draws | Docs |
|---|---|---|---|
| Order flow | OrderbookChart, OrderbookLadder, PrintTape, BarProfilePanel | Five order book variants, the depth ladder, the print tape and the per-bar profile | Order book |
| Terminal panels | LiquidityRibbonPanel, DeltaCandlesPanel, PaceOfTapePanel, AuctionHeatmapPanel, EfficientFrontierPanel | Liquidity ribbon, delta candles, pace of the tape, auction landscape and the efficient frontier | Terminal panels |
| Risk figures | CorrelationPanel, RiskDecompositionPanel, ScenarioConePanel, AttributionPanel | Correlogram, risk decomposition, scenario cone and the attribution bridge | Analytics kits |
| Desk and workspace | WorkspacePanel, MultiChartGrid, DrawingTree, CommandPalette, KeymapPanel, FavoritesBar | Saved layouts, a grid of up to 16 panes, the object tree, the command palette, the hotkey map and the favorites strip | Features |
| Alerts | AlertManager, AlertGroupPanel, AlertGroupEditor, AlertActionList, createAlertNotifier, ToastStack | Rule manager, condition groups, the action plan, toasts and the alert sound | Features |
| Trading desk | OrderTicketPanel, SessionPanel, PaperSessionPanel, ComparePanel, CompareChip, WatchlistPanel, DataWindowPanel | Order ticket, sessions and timezones, the paper session report, comparison, watchlist and the data window | Terminal panels |
| Tables and export | DataTable, chartPdfFromCanvas, openPanelPopout, createLinkBridge | Financial boards, the PDF export, popped-out windows and the LINK bridge | Table kit |
| Control kit | UiButton, UiInput, UiSelect, UiDialog, UiMenu, UiTooltip, MOTION_DURATION | One control language and one motion scale for every panel | React API |
A Pro surface is white-label as well: the Standard attribution mark is not drawn on any of them.
Pro-only effects
Pro only The three families below are the Pro entry point itself. Each panel reads the active theme and the look pack, so a palette switch repaints it with the chart.
Order book variants
The five canvas variants of a live two-sided book: depth area, depth histogram, ladder, heatmap and imbalance.
- Best bid
- 12949.50
- Best ask
- 12950.50
- Spread
- 1.00
- Mid
- 12950.00
- Imbalance
- 0.05
- Bid / ask
- 20.2K / 18.1K
Rendered by `OrderbookChart` from `@unifin/chart-react/pro` - a Pro component over the public `paintOrderbookChart` of the core. The book is synthetic; every control drives the real props (variant, theme, look pack, aggregation step, book depth).
Terminal panels
Liquidity ribbon, delta candles, pace of the tape, auction landscape and the efficient frontier - the panel painters of the Pro entry point.
Risk figures
Correlogram, risk decomposition, scenario cone and the attribution bridge from the risk kit.
The look engine on the chart
Pro desk The engine that drives every Pro surface, shown on the chart itself: the look pack, the four gradients, the presets, the replay and the volume effects of the core depth painters - the desk composition no Standard scene demos.
Try it live
No change applied yet - touch any control and this line reports what it did to the chart above.
Pro desk runs this engine at full strength: the volume effects of the core depth painters, live sparks and the white-label frame. The Pro panels of this page and the desk take the same look further.
- Palette
- Dark
- Look
- aurora · ice · onest
- Gradients
- indicator, volume
- Presets
- sparks
- Volume effects
- 0 cells · 0 rows · 0 candles
- Bursts
- 0
Look pack
Series and look attributes of the element; every change rebuilds the scene above in place.
Gradients
One attribute each, at most one ramp per colour and frame. The indicator ramp paints the stroke of line, area and spline series - switch the series above to see it. The line ramp re-colours the tail of a line body and also implies the indicator ramp, so it ships off here.
Presets
Element presets (`fx()`) and the burst style of the live sparks.
Replay
The history cursor of the element: play, step, pause, exit. Step works from any state.
Volume effects
Painted by the core depth painters from fixed data: the grid, the profile and the parallax come from `buildIsometricGrid`, `depthProfileRows` and `parallaxShape`; the canvas takes the chart palette, so a palette switch repaints it together with the chart.
Rendered on this page by `@unifin/chart-element` and the core depth painters. Every control drives the real public API: the look selects map to `backdrop`, `bars-style`, `volume-tone`, `volume-alpha`, `readout-skin` and `font`, the gradient switches map to `indicator-gradient`, `line-gradient`, `volume-gradient` and `chart-gradient`, the preset switches call `fx()`, and the replay row calls `replayPlay`, `replayStep`, `replayPause` and `replayExit`. The Pro surfaces are white-label: the frame draws no attribution mark. Effects are refused while the system prefers reduced motion.
The bar above the chart switches the timeframe, the live stream and the palette. The cards under the chart drive the look pack, the gradients, the presets, the replay and the volume effects: every row writes a real attribute or method of the element, and the status line under the chart reports the change it just applied - including a preset the system refused under reduced motion. The chip row of the volume effects counts the objects their painters wrote, and the counters above keep the palette, the look, the gradients and the presets in force readable at a glance. The volume effects, the live sparks and the white-label frame are what the desk adds here; the Pro panels of this page carry the same look into the book, the figures and the desk.
Volume effects
Three effects give a flat two-dimensional frame a sense of depth without WebGL and without a second
render stack. All three are pure functions of the core render entry point: they take data and return
geometry or paint with the host tokens.
| Effect | Core entry | What it draws |
|---|---|---|
| Isometric heat map | buildIsometricGrid, paintIsometricGrid | Value levels projected to a grid that runs in time and back in value; the depth of a cell follows its weight |
| Candle parallax | parallaxShape, paintParallaxCandles | A shift away from the centre with a shadow plane; the candle geometry never changes, only the offset and the tone |
| Depth profile | depthProfileRows, paintDepthProfile | A profile unfolded into depth; the row length follows the volume and the largest level leads |
Each effect is capped, so a wide range cannot flood the frame: the isometric grid stops at
ISOMETRIC_MAX_ROWS rows and ISOMETRIC_MAX_DEPTH pixels of depth, the parallax shift at
PARALLAX_MAX_OFFSET and the profile row at DEPTH_PROFILE_MAX_LENGTH. A dense axis damps the parallax
instead of smearing it.
import { buildIsometricGrid, paintIsometricGrid } from '@unifin/chart-core/render';
const grid = buildIsometricGrid(cells, { cellWidth: 16, levelHeight: 5, skew: 4 });
const painted = paintIsometricGrid(ctx, grid, { accent: '#2962ff', up: '#26a69a', down: '#ef5350', warn: '#cc06fb' }, { x: 24, y: 40 });The painters own no palette: colours arrive as tokens of the chart palette and the scene fills the background, so a palette switch repaints the canvas together with the chart. A canvas that cannot paint keeps the flat fill instead of failing.
Look pack and gradients
The look pack is one object on the element (look) and a set of attributes with the same names. It
restyles the frame without touching the data or the layout.
| Control | Attribute | Values |
|---|---|---|
| Backdrop | backdrop | flat, gradient, aurora |
| Bars | bars-style | classic, neon, sunset, ice, mono |
| Volume tone | volume-tone | theme, dim, accent, contrast |
| Volume alpha | volume-alpha | 0.15 .. 1 |
| Readout | readout-skin | plain, chip, cards |
| Font | font | onest, inter, serif, mono |
| Indicator gradient | indicator-gradient | present or absent |
| Line gradient | line-gradient | absent, on, or a share 0.02 .. 0.9 |
| Volume gradient | volume-gradient | absent, on, or a share 0.02 .. 0.9 |
| Chart gradient | chart-gradient | absent, on, or from=#..,to=#..,angle=..,phase=.. |
The three gradients are independent and work in every palette. line-gradient shades candle and column
bodies from the bright top towards their own darker tail and tapers line and area strokes.
volume-gradient shades the volume band and stays independent of the volume tone. chart-gradient
replaces the flat theme fill with a ramp derived from the palette.
Each gradient creates at most one ramp per colour and frame, so a long history keeps the flat frame
cost. A canvas without gradients keeps the flat fill, and classic always resolves to the live theme
colours.
Presets and replay
The presentation presets are opt-in, follow the motion policy and cost nothing while they are off.
| Preset | What it draws | When it fires |
|---|---|---|
sheen | a soft highlight sweeping across the frame | continuously while active |
cursorGlow | a radial glow following the pointer | while active and the pointer moves |
sparks | a burst of particles at the newest close | on activation, on scene switches and on every live update of the last bar |
const element = document.querySelector('unifin-chart');
element.fx('sparks', true); // false when the system prefers reduced motion
element.sparkStyle = 'nova'; // burst style, read on the next burstThe history replay is the same engine the Pro workspace uses. replayPlay(speed, from) starts the
cursor, replayStep(delta) walks whole bars, replayPause() holds it and replayExit() draws the full
history again. replay:progress reports the index, progress, playing flag and speed.
Desk frame effects
The frame effects of the desk share the same engine and stay opt-in as well. The profile gradient, the area glow and the parallax depth layer are painted by the render subpath of the core, and the three desk presets merge one look over the host look without touching the host object.
Frame effects
Painted by the render subpath: `paintProfileGradient` draws the value area ramp and the POC/VAH/VAL pills through the frame gradient registry, `paintAreaGlow` adds the halo passes under the line, `paintDepthLayer` shifts the candles into the distance, and `DeskPresets` merges one of the three desk looks (terminal dark, corporate light, white label) over the host look by `applyDeskPreset`. Switching an effect off paints nothing and leaves the base frame untouched.
| Effect | What it draws | Switch |
|---|---|---|
| Profile gradient | the value area ramp between VAH and VAL plus the POC, VAH and VAL pills | paintProfileGradient with the frame registry |
| Area glow | three halo passes under the line fill, fading with the line | polish.glow on the series |
| Depth layer | the candles shifted into the distance by the parallax shape | paintDepthLayer above a minimum plot width |
| Desk presets | one of three desk looks: terminal dark, corporate light, white label | DeskPresets / applyDeskPreset |
The depth layer fades out below the fade spacing and switches off entirely on a dense zoom, in the mini mode or on a plot narrower than 400 px: a refused layer paints nothing, so switching it off leaves the base frame byte for byte. Each gradient ask resolves through the frame registry, which keeps at most one ramp per colour and frame and drops the ramp when the theme or the canvas size changes.
Motion policy
While the system prefers reduced motion, enabling a preset returns false and nothing is drawn. The
same policy gates the scene crossfade and the view animations, so a host never special-cases effects.
See also
- Order book chart - the five variants and their models.
- Terminal panels - the panels of the Pro entry point.
- Analytic figures - the figure family and the shared heatmap painter.
- Live effects - the Standard scene built on the same engine.
- Editions - what each entry point ships and its budget.
