Skip to content

Interface: D3PAnnotationStyle ​

Defined in: core/annotation.ts:18

The style of an annotation: stroke, fill, opacity and the color and size of its label.

Properties ​

color ​

ts
color: string;

Defined in: core/annotation.ts:30

Color and size of the label.


fill ​

ts
fill: string;

Defined in: core/annotation.ts:26

Fill of a band or a marker.


fontSize ​

ts
fontSize: number;

Defined in: core/annotation.ts:32

Size of the label, in pixels.


opacity ​

ts
opacity: number;

Defined in: core/annotation.ts:28

Opacity of the mark, from 0 to 1.


stroke ​

ts
stroke: string;

Defined in: core/annotation.ts:20

Color of the line or of the outline.


strokeDasharray ​

ts
strokeDasharray: string;

Defined in: core/annotation.ts:24

Dash of the line, as an SVG stroke-dasharray (solid by default).


strokeWidth ​

ts
strokeWidth: number;

Defined in: core/annotation.ts:22

Width of the line, in pixels.