Skip to content

Interface: D3PAxisTitleProps ​

Defined in: core/titles.ts:128

Props of an axis title: its text (the name of the axis by default), its alignment along the axis, the gap to the labels and its style.

Properties ​

align ​

ts
align: "start" | "end" | "center";

Defined in: core/titles.ts:132

Where it is along the axis: its start, its middle (the default) or its end.


gap ​

ts
gap: number;

Defined in: core/titles.ts:134

Pixels between the tick labels of the axis and its title (cartesian axes).


style ​

ts
style: object;

Defined in: core/titles.ts:136

Color, size and weight of the text.

color ​

ts
color: string;

fontSize ​

ts
fontSize: number;

fontWeight ​

ts
fontWeight: string;

text ​

ts
text: string;

Defined in: core/titles.ts:130

Default: the display name of the axis.