Skip to content

ContourDensityChart

beta

D3-powered 2D contour density chart for return distribution — bimodal clusters, alpha factor scatter, risk-return frontiers, option payoff density

import { ContourDensityChart } from "@nodus/design-system/finance"
Demo coming soon

Props

data
Type DensityPoint[]Default

Array of {x, y, label?} data points

xLabel
Type stringDefault

X-axis label (default: 'Return (%)')

yLabel
Type stringDefault

Y-axis label (default: 'Volatility (%)')

bandwidthX
Type numberDefault

KDE bandwidth in x direction (auto-derived if omitted)

bandwidthY
Type numberDefault

KDE bandwidth in y direction (auto-derived if omitted)

thresholds
Type numberDefault

Number of density iso-level contours (default: 10)

colorScale
Type 'seqBlue' | 'seqRed' | 'seqNeutral'Default

Sequential color ramp (default: seqBlue)

showPoints
Type booleanDefault

Overlay raw scatter points (default: true)

width
Type numberDefault

SVG width in px (default 560)

height
Type numberDefault

SVG height in px (default 380)

title
Type stringDefault

Accessible chart title

Metadatasemantictypeborderviz
MobileStacks / Scroll

Contour density chart requires min 400px for axis labels and legend. Wrap in overflow-x-auto on narrow viewports.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?