getAxis

function getAxis(scale: d3.ScaleLinear <number, number>, axisType: AxisType): d3.Axis

A utility function that returns the results of the various d3 axis functions.

Parameters

  • scale: d3.ScaleLinear <number, number>

  • axisType: AxisType

Returns: d3.Axis <number | None>