Skip to content
ChartslibraryUI Get Pro

Candlestick chart

OHLC prices with volume in its own panel and malformed rows rejected.

When to use

  • Daily or weekly prices
  • Trading or pricing dashboards

When not to use

Good practice

  • Rising candles are hollow and falling filled, so direction never depends on colour.
  • Rows with high < open/close are rejected and listed, not silently fixed.

Installation

Candlestick chart is a Pro chart.

Installation is part of Pro

The full source is included in the Pro download. Get Pro to install it with the CLI and use it in unlimited projects.

Unlock with Pro
Already have Pro?npx chartslibraryui add candlestick-chart --from ./chartslibraryui-pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in the Pro download. The props and data shape below are public.

Unlock with Pro

Data

Rows with an x key and open, high, low, close (and optional volume) keys.

[{ date: "2026-03-02", open: 142.1, high: 144.0, low: 141.2, close: 143.5, volume: 1.8e6 }]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface CandlestickChartProps extends FrameProps {
  data: Row[];
  /** Key of the period label (date). */
  x: string;
  open?: string;
  high?: string;
  low?: string;
  close?: string;
  /** Optional volume key; drawn in a separate panel below. */
  volume?: string;
  format?: FormatInput;
  volumeFormat?: FormatInput;
  /** Colours for rising / falling periods. Default: favorable green / unfavorable red. */
  upColor?: string;
  downColor?: string;
}

Line chart

Trends over time for one to four series, with gaps for missing data and marked forecasts.

Pro

Box plot

Median, quartiles, whiskers and every outlier per group, with n printed.