Klar

Charts / React finance charts / Markets

Volatility surface

Implied volatility by strike and expiry as a banded contour grid, linked to the smile of any expiry and the at-the-money term structure.

React component VolSurface, data through props. Prices, order books, curves and risk: the vocabulary of a trading desk. Tags: volatility, surface, options, contour, smile, heatmap, derivatives.

Install

npm i klar-charts

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

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

Usage

<VolSurface className="mt-4" strikes={volStrikes} expiries={volExpiries} iv={volGrid} spot={volSpot} selected={sel} onSelect={setSel} height={440} />

Related volatility surface charts