Skip to content

Stacked area chart

D3 chart

For all common D3 chart properties, refer to D3 chart API.

Chart.Area

For stacked view, you should pass true into stacked prop

js
import { Chart } from '@semcore/ui/d3-chart';

AreaChartProps

BaseChartProps<> & {...}
NameTypeDescription
groupKeystring
xScaleScaleLinear<any, any> | ScaleTime<any, any>
yScaleScaleLinear<any, any>
showDotsboolean
curve
stackedboolean

StackedArea

It have children components Area.

js
import { StackedArea } from '@semcore/ui/d3-chart';

<StackedArea>
  <StackedArea.Area />
</StackedArea>;

StackedAreaProps

& {...}
NameTypeDescription
xstring Field name from `data` array item for the XAxis
ystring Field name from `data` array item for the YAxis
stackany Stack generators
patterns Enables charts patterns that enhances charts accessibility

Released under the MIT License.

Released under the MIT License.