English
Interface: D3PAxisProps
Defined in: core/axis.ts:38
Props of an axis: the name it shows, the grid, the number of ticks, how a value is written (tickFormat) and a hook to change the drawing (postProcess).
Properties
displayName
ts
displayName: string;Defined in: core/axis.ts:40
The name the axis shows (the text of its title): the name of the axis by default.
grid
ts
grid: D3PAxisGridProps;Defined in: core/axis.ts:42
The grid drawn from the ticks.
postProcess
ts
postProcess: (group) => void;Defined in: core/axis.ts:50
Called after each draw with the axis group, to customize the SVG.
Parameters
group
Selection<SVGGElement, unknown, null, undefined>
Returns
void
tickCount
ts
tickCount: number;Defined in: core/axis.ts:44
The number of ticks wanted (d3 may give a few more or less).
tickFormat
ts
tickFormat: ((v) => string) | null;Defined in: core/axis.ts:48
Writes a value, for the ticks and the labels of the cursor and the tooltip. null: the default format of the scale. A cursor label is not a tick: round its value.