BottomCategoricalAxis - Ledragon/ldd3 GitHub Wiki
Module "src/axes/BottomCategoricalAxis"
Class BottomCategoricalAxis
A class representing a bottom categorical axis.
Constructor
Create a new BottomCategoricalAxis.
Usage:
new BottomCategoricalAxis(container: Selection<SVGElement, T, any, any>, _width: number, _height: number)
Parameters:
- container - Selection<SVGElement, T, any, any>: the svg element to which the axis will be appended.
- _width - number: the width of the container.
- _height - number: the height of the container.
Return type: BottomCategoricalAxis
bandWidth
Usage:
bandWidth()
Return type: number
domain
Gets the domain of the axis.
Usage:
domain()
Return type: any
Sets the domain of the axis.
Usage:
domain(value: any)
Parameters:
- value - any:
Return type: BottomCategoricalAxis<T>
group
Get the group in which the axis is drawn.
Usage:
group()
Return type: Selection<SVGGElement, any, any, any>
padding
Usage:
padding(value: number)
Parameters:
- value - number:
Return type: BottomCategoricalAxis<T>
scale
Usage:
scale(value: any)
Parameters:
- value - any:
Return type: number