Stream

@nivo/streamstacked

Stream chart.

The responsive alternative of this component is ResponsiveStream.

See the dedicated guide on how to setup legends for this component.

roll the dice
Actions Logs
Start interacting with the chart to log actions
Base
object[]required

Chart data.

string | numberrequired

Keys to use to build each layer.

string | (layer) => string | numberoptionaldefault:'id'

Label accessor, used for legends.

string | (value: number) => stringoptional
open editor

Optional formatter for values.

stringoptional
wiggle

Offset type.

stringoptional
none

Layers order.

stringoptionaldefault:'catmullRom'
catmullRom

Curve interpolation.

numberrequired

Chart width for non-responsive component.

numberoptional

Chart default width for responsive component.

numberrequired

Chart height for non-responsive component.

numberoptional

Chart default height for responsive component.

number (ms)optional

Debounce width/height updates for responsive component.

(dimensions: { width: number; height: number }) => voidoptional

A callback for when responsive component is resized.

objectoptional
px
px
px
px

Chart margin.

Ref<SVGSVGElement>optional

Ref to the chart's container. Used on this page to generate/download the chart's image via html-to-image.

Style
Customization
Grid & Axes
Dots
Interactivity
Motion
Accessibility