Skip to content

Line chart

D3 API

Chart.Line

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

LineChartProps

BaseChartProps<> & {...}
NameTypeDescription
groupKeystring
areaRecord<[]>
xScaleScaleLinear<anyany> | ScaleTime<anyany>
yScaleScaleLinear<anyany>
showDotsboolean
curve
areaCurve

Line

It have children components Dots, Null.

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

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

<Line>
  <Line.Dots />
  <Line.Null />
</Line>;

LineProps

& {...}
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.