Skip to content

Radar chart

D3 chart ​

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

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

<Radar/>;

RadarProps ​

& {...}
NameTypeDescription
scaleanyDeprecated Scale for radar element
type"polygon" | "circle" Graph type to be displayed
offsetnumber Indent from the edge of svg to graph
textSizenumber Label font size
angleOffsetnumber Base angle of chart rotation
patterns Enables charts patterns that enhances charts accessibility
onClick(index: number, e: ) => void Callback triggered when a user clicks on a chart at a position corresponding to a category

Radar.Axis ​

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

<Radar.Axis/>;

RadarAxisProps ​

& {...}
NameTypeDescription
dataKeystring Sets the field name for categories

Radar.Axis.Labels ​

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

<Radar.Axis.Labels/>;

RadarAxisLabelsProps ​

NameTypeDescription
labelOffsetnumber Indent from graph to label

Radar.Axis.Ticks ​

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

<Radar.Axis.Ticks/>;

RadarAxisTicksProps ​

NameTypeDescription
tickSizenumber Distance between auxiliary lines

Radar.Polygon ​

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

<Radar.Polygon/>;

RadialPolygonProps ​

& {...}
NameTypeDescription
dataKeystring Sets the field name for data
curve Curve method
colorstring Sets the color of the entire polygon
fillstring Sets the fill color

Radar.Polygon.Line ​

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

<Radar.Polygon.Line/>;

RadialPolygonLineProps ​

NameTypeDescription
colorstring Sets the line color

Radar.Polygon.Dots ​

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

<Radar.Polygon.Dots/>;

RadialPolygonDotsProps ​

NameTypeDescription
colorstring Sets the dot color

Released under the MIT License.

Released under the MIT License.