Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

§Functions

axisBottom

Constructs a new bottom-oriented axis generator for the given scale, with empty tick arguments, a tick size of 6 and padding of 3. In this orientation, ticks are drawn below the horizontal domain path.

axisLeft

Constructs a new left-oriented axis generator for the given scale, with empty tick arguments, a tick size of 6 and padding of 3. In this orientation, ticks are drawn to the left of the vertical domain path.

axisRight

Constructs a new right-oriented axis generator for the given scale, with empty tick arguments, a tick size of 6 and padding of 3. In this orientation, ticks are drawn to the right of the vertical domain path.

axisTop

Constructs a new top-oriented axis generator for the given scale, with empty tick arguments, a tick size of 6 and padding of 3. In this orientation, ticks are drawn above the horizontal domain path.

§Interfaces

Axis

Interface defining an axis generator. The generic is the type of the axis domain.

AxisScale

A helper interface to which a scale passed into axis must conform (at a minimum) for axis to use the scale without error.

AxisTimeInterval

A helper interface to describe the minimal contract to be met by a time interval which can be passed into the Axis.ticks(...) or Axis.tickArguments(...) methods when creating time series axes. Under normal circumstances the argument will be of type TimeInterval or CountableTimeInterval as defined in d3-time. NB: This helper interface has been created to avoid tight coupling of d3-axis to d3-time at the level of definition files. I.e. d3-time is not a dependency of d3-axis in the D3 Javascript implementation. This minimal contract is based on an analysis of how d3-axis passes a time interval argument into a time scale, if a time scale was set using Axis.scale(...). And in turn on how a time scale uses the time interval when creating ticks from it.

§Type Aliases

AxisContainerElement

A helper type to alias elements which can serve as a container for an axis.

AxisDomain

A helper type to alias elements which can serve as a domain for an axis.