Klar

Charts / React finance charts / Markets

Yield curve

The term structure today against a month and a year ago, with inversion against the 3M yield shaded and the 2s10s spread called out.

React component YieldCurve, data through props. Prices, order books, curves and risk: the vocabulary of a trading desk. Tags: yield-curve, rates, bonds, term-structure, inversion, macro, line.

Install

npm i klar-charts

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

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

Usage

<YieldCurve className="mt-4" tenors={tenors} curves={curves} height={380} />

Related yield curve charts