Skip to content

Interface: D3PAxisGridProps ​

Defined in: core/axis.ts:22

Props of the grid of an axis: whether it is drawn, and its stroke, width, dash and opacity.

Properties ​

enabled ​

ts
enabled: boolean;

Defined in: core/axis.ts:24

Whether the grid is drawn.


opacity ​

ts
opacity: number;

Defined in: core/axis.ts:32

Opacity of the grid lines (0 to 1).


stroke ​

ts
stroke: string;

Defined in: core/axis.ts:26

Color of the grid lines.


strokeDasharray ​

ts
strokeDasharray: string;

Defined in: core/axis.ts:30

Dash of the grid lines, as an SVG stroke-dasharray ('2,2').


strokeWidth ​

ts
strokeWidth: number;

Defined in: core/axis.ts:28

Width of the grid lines, in pixels.