chartcn

Volume

Price candles with volume in its own pane.

A pane of its own

Volume cannot share the price axis — the numbers have nothing to do with each other. It gets a pane: its own band of the plot with its own extent, recomputed from whatever is visible.

Panes are the engine's unit for exactly this. Each declares a share of the plot height and either derives its scale from its items or pins it with domain. Bars are tinted by the direction of their candle.

Volume under price
Volume keeps its own scale — it shares nothing with the price axis

Shared engine

All the Markets charts are configuration over one renderer. A chart declares its price mark, any overlays that share the price scale, and any panes that need their own — the viewport, axes, crosshair and interaction come from canvas-chart.tsx.

On this page