Skip to content

Area chart

D3 chart

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

Chart.Area

js
import { Chart } from 'intergalactic/d3-chart';
import { Chart } from 'intergalactic/d3-chart';

AreaChartProps

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

Area

It have children components Dots, Null.

js
import { Area } from 'intergalactic/d3-chart';

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

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

AreaProps

& {...}
NameTypeDescription
xstring Field name from `data` array item for the XAxis
ystring Field name from `data` array item for the YAxis
colorstring Line color
hideboolean Element hide property
curve Curve method
durationnumber Animation duration in ms
transparentboolean Enables element transparency
patterns Enables charts patterns that enhances charts accessibility

Released under the MIT License.

Released under the MIT License.