Area Chart

An area chart displays trends over time. In stacked versions, each series is layered to highlight cumulative trends and combined totals.

Note

Stacked area charts are a common use case, as shown in the example above, used to visualise cumulative trends over time.

Props

NameDescriptionTypeRequiredDefault
curveSets the curve type used to render the line path between data points'linear' | 'natural' | 'monotoneX' | 'stepBefore' | 'stepAfter'No'linear'
childrenCustom SVG element rendered inside the graphReactNodeNo-
loadingDisplays a loading skeletonbooleanNofalse

Styling

Custom styling can be applied to the area chart by targeting the class names below.

Class NameElement
area__strokeThe line path
area__fillFilled area beneath the line