Skip to content

Candlestick

Open, high, low and close per period: rising candles green, falling ones red, or a monochrome tape (hollow bone rising, solid grey falling) where the candle under your pointer heats in the accent.

$149 once · every Pro piece

Customize

Point at a candle and it lights up; the readout rolls to its close and lists O, H, L and C with the change. The vertical crosshair and the change take the candle’s direction colour, a dashed line follows your pointer’s height with a rolling value pill on the price axis, and the date pill rolls along the bottom. Scroll to zoom around the pointer, drag to pan with a little momentum, double-click to reset, + and − from the keyboard; the price axis re-fits to what is in view. Options: volume bars on their own axis in the bottom quarter, a moving average, a Bollinger envelope, hatched falling bodies, an OHLC tooltip, and loading and empty states.

Install

npx shadcn@latest add @obsyde/candlestick

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Candlestick } from '@/components/obsyde/ember/candlestick/Candlestick';

export function Example() {
  return (
    <Candlestick />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/candlestick/Candlestick.tsxcomponent
  • ember/candlestick/candlestick.cssstyles
  • ember/candlestick/CandlestickDemo.tsxdemo
  • ember/viz-kit/viz-kit.cssshared
  • ember/viz-kit/Tooltip.tsxshared
  • ember/viz-kit/focus.tsshared
  • ember/viz-kit/patterns.tsxshared
  • ember/viz-kit/roll.tsshared
  • ember/shared/rolling-number.cssshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/viz-kit/scale.tsshared
  • ember/viz-kit/motion.tsshared
  • ember/viz-kit/chart.tsxshared
  • ember/shared/ember.cssshared
  • ember/viz-kit/touch.tsshared
  • ember/viz-kit/keyboard.tsshared
  • ember/viz-kit/size.tsshared
  • ember/viz-kit/States.tsxshared
  • ember/viz-kit/shape.tsshared
  • ember/viz-kit/series.tsxshared
  • ember/viz-kit/Grid.tsxshared
  • ember/viz-kit/Axis.tsxshared
  • ember/viz-kit/annotations.tsxshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
colorsColours'market' | 'mono''market'
candlesCandlesnumber64
zoomZoom (visible)number0
volumeVolumebooleanfalse
maMoving averagenumber0
bandsEnvelopebooleanfalse
bodiesFalling bodies'solid' | 'pattern''solid'
priceLinePrice linebooleantrue
tooltipTooltip'none' | 'panel''none'
patternPattern'none' | 'diagonal-up' | 'diagonal-down' | 'dots' | 'vertical' | 'crosshatch''none'
backgroundBackground'grid' | 'dots' | 'none''grid'
revealReveal'sweep' | 'cool' | 'rise' | 'fade' | 'none''sweep'
statusStatus'ready' | 'loading' | 'empty''ready'
heightHeightnumber260
seedSeednumber5