Skip to content

Interface: D3PTitleProps ​

Defined in: core/titles.ts:20

Standard titles. They are made the way a title of your own would be: a D3PSlot for the room around the plot, and text put in the element of the slot. Nothing here is special to the library; use them as they are, change their props, or write your own the same way.

Properties ​

align ​

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

Defined in: core/titles.ts:26

Along the plot: the start, the middle or the end of it.


style ​

ts
style: object;

Defined in: core/titles.ts:28

Colors, sizes and weight of the title and of the subtitle.

color ​

ts
color: string;

fontSize ​

ts
fontSize: number;

fontWeight ​

ts
fontWeight: string;

subtitleColor ​

ts
subtitleColor: string;

subtitleFontSize ​

ts
subtitleFontSize: number;

subtitle ​

ts
subtitle: string;

Defined in: core/titles.ts:24

A smaller line under the title.


text ​

ts
text: string;

Defined in: core/titles.ts:22

The title.