Skip to content
Charts55Components12Visuals14ASCII45
GitHubGet startedGet started
All chartsVolume profileFinance
PreviousNext: Monthly returns

FinanceFI-09

Volume profile

Where a market traded: volume at each price, split into bought and sold, with the busiest price and its value area marked.

Part
FI-09
Component
VolumeProfileCard
From
@lilt-ui/charts/finance

SOL · USDC

$182.45$182.45
$180.00$190.00$200.00POC
Point of control $182.45. Value area $174.34–$193.52, 70% of 228.6M traded. Last close $205.56.
SOL · USDC
ObservationValue
$172.86–$174.341.1M traded · 40% bought
$174.34–$175.813.3M traded · 56% bought · value area
$175.81–$177.298.3M traded · 58% bought · value area
$177.29–$178.7612.9M traded · 57% bought · value area
$178.76–$180.2422.2M traded · 56% bought · value area
$180.24–$181.7227M traded · 55% bought · value area
$181.72–$183.1931.2M traded · 49% bought · point of control
$183.19–$184.6720.5M traded · 58% bought · value area
$184.67–$186.149.8M traded · 60% bought · value area
$186.14–$187.624.5M traded · 71% bought · value area
$187.62–$189.092.6M traded · 61% bought · value area
$189.09–$190.572.9M traded · 85% bought · value area
$190.57–$192.056.7M traded · 61% bought · value area
$192.05–$193.528.6M traded · 51% bought · value area
$193.52–$195.008M traded · 65% bought
$195.00–$196.475.6M traded · 79% bought
$196.47–$197.955.3M traded · 73% bought
$197.95–$199.435.4M traded · 62% bought
$199.43–$200.908.2M traded · 59% bought
$200.90–$202.389.6M traded · 71% bought
$202.38–$203.859.9M traded · 60% bought
$203.85–$205.338.7M traded · 51% bought
$205.33–$206.804.7M traded · 56% bought
$206.80–$208.281.3M traded · 55% bought
Default01 / 02

Installation

One package, one sheet.

Add the package, then import the component and the stylesheet once. See Getting started for theming.

$npm install @lilt-ui/charts
import { VolumeProfileCard } from '@lilt-ui/charts/finance';
import '@lilt-ui/charts/styles.css';

Usage

The default card.

The default card above, as you would write it.

<VolumeProfileCard
  title="SOL · USDC"
  data={candles}
  close="close"
  volume="volume"
  open="open"
  high="high"
  low="low"
/>

Omit title to leave out the visible title. Set header={false} to remove the whole header, and use aria-label to name a chart inside your own card. surface="ghost" controls only the visual frame. See Card composition.

Data

The shape it reads.

Each period’s volume is spread evenly over the prices between its low and high, or placed at its close without them. It counts as bought when the period closed at or above its open, or above the previous close when there is no open. The range is split into bins (24 by default). The point of control is the busiest band; the value area grows from it toward whichever neighbour traded more until it holds valueArea (70%) of the volume. volumeProfile returns the same bins for your own layouts.

// The same candles a candlestick card reads.
const candles = [
  { date: new Date('2026-06-28'), open: 178.1, high: 181.4, low: 176.9, close: 180.2, volume: 2_310_000 },
  // …one row per period
];

Props36

Every prop.

Every prop VolumeProfileCard accepts, in the order you are likely to reach for them.

PropTypeDescription
closenumeric key of RowEach period’s close.
volumenumeric key of RowEach period’s traded volume.
opennumeric key of RowOpen, to count volume as bought or sold.
highnumeric key of RowSpread each period’s volume over the prices it traded.
lownumeric key of RowSpread each period’s volume over the prices it traded.
binsnumberPrice bands, from 2 to 200. Defaults to 24.
valueAreanumberShare of volume the value area holds. Defaults to 0.7.
volumeFormatIntl.NumberFormatOptionsVolume format. Compact numbers by default.
titlestringOptional visible title. Omit to render no title. Also supplies the accessible name unless aria-label is set.
headerbooleanDefaults to true. False removes the whole header: title, headline, delta and period controls, with no reserved space. Pass data directly when your app owns period selection.
aria-labelstringAccessible chart name, independent of the visible title. Falls back to title, then a generic chart name.
dataRow[]One row per observation. Omit when using ranges.
heightnumberMinimum plot height, default 260. Dense lanes expand to keep every mark visible.
depthbooleanLit tiles, solid bars, or spheres. Data positions remain exact; loading keeps the same depth treatment.
headlinenumberOverride the resting headline.
deltanumberFractional change shown alongside the headline.
deltaTone'default' | 'inverse' | 'neutral'Use inverse when a decrease is good.
rangestringStatic period label.
ranges{ id, label, data, headline?, delta? }[]Period choices with their own data.
defaultRangestringInitial period id.
localestringLocale for numbers and dates; defaults to en-US.
formatValue(value: number) => stringCustom value formatter.
badgeReactNodeContent for the glass tab above the card.
classNamestringClass on the card frame.
styleCSSProperties | ChartStyleInline styles and scoped chart variables.
onSelectionChange(selection | null) => voidReports id, original row (or null for an absent day), value, and pinned state.
renderReadout(selection | null) => ReactNodeConsumer-owned readout, including when the header is hidden.
valueFormatIntl.NumberFormatOptionsFormats the headline, tiles, and axis, e.g. currency.
surface'elevated' | 'outline' | 'ghost'Card treatment. Ghost removes the visual frame only; header and legend are independent controls.
palette'spectrum' | 'iris' | 'cobalt' | 'emerald'Series colors. Spectrum by default; explicit series colors still win.
numberStyle'count' | 'pop' | 'slide' | 'roll' | 'flow' | 'scramble'How the headline animates when its value changes. Count (default) counts to the new value.
loadingbooleanShows a neutral loading skeleton, not data.
loadingStyle'shimmer' | 'draw' | 'breathe'Shimmer sweeps a highlight over still shapes; draw reveals them in order; breathe lets them settle. Follows the selected look, including depth, and respects reduced motion.
empty'dots' | 'shape' | ReactElement | nullWhat the card shows when the period has no data. Dots (default) gathers a quiet dot field around the message; shape lays the chart’s own outline behind it. Pass `<ChartEmpty>` with your own words, any element of your own, or null for nothing. Both looks stay still, so empty never reads as loading, and the headline reads a dash, never zero.
motion'auto' | 'none'None turns off decorative motion; reduced motion does this automatically.
onKeyDownKeyboardEventHandler<HTMLElement>Keyboard handler on the card frame. Chart inspection also has its own keyboard handling.
Previous chartMarket mapNext chartMonthly returns

Ready when your data is. Start with one install.

Install a package, import the stylesheet once, and drop in a card or a scene.

Read the guideRead the guideView on GitHubView on GitHub
ChartsAll chartsAll chartsFinanceFinanceCustomizeCustomizeFeaturesFeatures
ComponentsAll componentsAll componentsAIAIStatusStatusActionsActionsDataData
VisualsAll visualsAll visualsAIAIDataDataSecuritySecurityProductProduct
ASCIIAll scenesAll scenesTextTextInterfaceInterfaceBackgroundsBackgroundsMediaMediaDataData
DocsGetting startedGetting startedAPI referenceAPI referenceMotion & accessibilityMotion & accessibilityllms.txtllms.txt
React components with a little lilt.GitHubGitHubnpmnpm