Skip to content

Area chart

D3 API

Chart.Area

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

AreaChartProps

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

Area

It have children components Dots, Null.

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

<Area>
  <Area.Dots />
  <Area.Null />
</Area>;
import { Area } from '@semcore/ui/d3-chart';

<Area>
  <Area.Dots />
  <Area.Null />
</Area>;

AreaProps

& {...}
NameTypeDescription
xstringField name from `data` array item for the XAxis
ystringField name from `data` array item for the YAxis
colorstringLine color
hidebooleanElement hide property
curveCurve method
durationnumberAnimation duration in ms
transparentbooleanEnables element transparency

Released under the MIT License.

Released under the MIT License.