Skip to content

Radar chart

D3 chart

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

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

<Radar/>;
import { Radar } from 'intergalactic/d3-chart';

<Radar/>;

RadarProps

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

Radar.Axis

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

<Radar.Axis/>;
import { Radar } from 'intergalactic/d3-chart';

<Radar.Axis/>;

RadarAxisProps

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

Radar.Axis.Labels

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

<Radar.Axis.Labels/>;
import { Radar } from 'intergalactic/d3-chart';

<Radar.Axis.Labels/>;

RadarAxisLabelsProps

NameTypeDescription
labelOffsetnumber Indent from graph to label

Radar.Axis.Ticks

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

<Radar.Axis.Ticks/>;
import { Radar } from 'intergalactic/d3-chart';

<Radar.Axis.Ticks/>;

RadarAxisTicksProps

NameTypeDescription
tickSizenumber Distance between auxiliary lines

Radar.Polygon

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

<Radar.Polygon/>;
import { Radar } from 'intergalactic/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 'intergalactic/d3-chart';

<Radar.Polygon.Line/>;
import { Radar } from 'intergalactic/d3-chart';

<Radar.Polygon.Line/>;

RadialPolygonLineProps

NameTypeDescription
colorstring Sets the line color

Radar.Polygon.Dots

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

<Radar.Polygon.Dots/>;
import { Radar } from 'intergalactic/d3-chart';

<Radar.Polygon.Dots/>;

RadialPolygonDotsProps

NameTypeDescription
colorstring Sets the dot color

Released under the MIT License.

Released under the MIT License.