Klar

Charts / React finance charts / Relationship

Correlation matrix

Pairwise correlations of twelve assets, clustered so related markets sit together, with each mark sized by the strength of the link.

React component CorrelationMatrix, data through props. How variables move together: correlation, density and many dimensions at once. Tags: correlation, matrix, heatmap, clustering, assets, portfolio, risk.

Install

npm i klar-charts

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

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

Usage

<CorrelationMatrix className="mt-5" assets={corrAssets} matrix={corrMatrix} order={order} shape={shape} window="1Y daily" height={452} />

Related correlation matrix charts