Klar

Charts / React finance charts / Markets

Equity and drawdown

An equity curve against its benchmark above the underwater curve, with the deepest drawdowns shaded from peak to recovery.

React component Drawdown, data through props. Prices, order books, curves and risk: the vocabulary of a trading desk. Tags: drawdown, equity-curve, underwater, performance, benchmark, risk, portfolio.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, Drawdown } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/fin-drawdown.json

Usage

<Drawdown className="mt-4" data={equity} label="Fund" benchmarkLabel="60/40" height={470} />

Related equity and drawdown charts