Charcoal UI

Volume Profile

Volume by price: buy and sell bars per level growing out from the axis, the point of control tagged, and the value area that holds 70% of volume shaded.

Examples

Volume Profile

API reference

PropTypeDefaultDescription
levels{ price: number; buy: number; sell: number }[]—
valueAreanumber0.7
decimalsnumber1
heightnumber320

About Volume Profile

Volume Profile shows volume by price level: buy and sell bars grow out from the axis, the point of control is tagged, and the value area that holds 70% of the volume is shaded.

Volume Profile is an animated chart for React 19, styled with Tailwind CSS 4 and animated with Motion. It drops into Next.js, Vite, Remix or Astro through the shadcn CLI as a single file you own.

When to use Volume Profile

  • Trading charts and market analysis.
  • Support and resistance views.
  • Crypto and futures dashboards.
  • Education about market structure.

How it works

The value area is computed from the point of control outward until it covers the share you set. Bars grow on a stagger, and each level's buy and sell volume is labelled for screen readers.

Each chart has a text alternative, hover tooltips are mirrored by keyboard focus where data points are interactive, and colour is never the only way a value is shown. With prefers-reduced-motion on, it holds still or settles instantly instead of animating.

Customizing Volume Profile

Every prop is documented in the API reference above with its type and default. The ones you will reach for first are listed here.

The Customize panel next to the preview lets you change valueArea, height live, and the Code tab updates to match, so the snippet you copy already carries your values.

  • levels.
  • valueArea (number, default 0.7).
  • decimals (number, default 1).
  • height (number, default 320).

Goes well with Volume Profile

These charts pieces share its tokens and motion language, so they sit together on one page without clashing.

  • Donut Chart: An animated React donut chart: segments draw in and thicken on hover
  • Activity Heatmap: A React contribution heatmap with four shades, tooltips and keyboard navigation
  • Sparkline: An animated React sparkline with fill, trend colour and a pulsing end dot
  • Line Chart: An animated React line chart with a snapping crosshair and multi-series tooltips
  • Area Chart: An animated React area chart with a comparison series and a target line

Install Volume Profile

npx shadcn@latest add @charcoal/volume-profile

Volume Profile is part of Charcoal UI Pro. One seat unlocks all 393 Pro components, 112 landing-page sections and 100 full templates, for every personal and client project, with updates included. Add the @charcoal registry once with your access token, then the command above copies volume-profile.tsx into components/ui and installs clsx, tailwind-merge.

You own the file you install: no runtime package, no lock-in, nothing to keep in sync. Change it however your product needs.

See Charcoal UI Pro pricing · Pro setup

Frequently asked questions

How do I install Volume Profile?
Volume Profile is part of Charcoal UI Pro. Add the @charcoal registry to components.json with your access token, then run npx shadcn@latest add @charcoal/volume-profile. It copies volume-profile.tsx into components/ui and installs motion, clsx, tailwind-merge.
Is Volume Profile free for commercial use?
Volume Profile needs a Charcoal UI Pro seat, monthly or a one-time lifetime price. A seat covers unlimited personal and commercial projects, including client work, and every future Pro component.
Does Volume Profile work with Next.js?
Yes. It is a client component for React 19 styled with Tailwind CSS 4, so it works in the Next.js App Router and Pages Router, Vite, Remix and Astro.
Can an AI coding agent install Volume Profile?
Yes. Connect the Charcoal UI MCP server (https://charcoalui.com/mcp) to Claude Code, Cursor or any MCP client; get_component returns Volume Profile's props and get_install_command returns the exact command.

Volume Profile as Markdown · llms.txt