Axes (d3-axis)
Human-readable reference marks for scales.
- d3.axisTop - create a new top-oriented axis generator.创建一个顶部轴
- d3.axisRight - create a new right-oriented axis generator.创建一个右边的轴
- d3.axisBottom - create a new bottom-oriented axis generator.创建一个底部轴
- d3.axisLeft - create a new left-oriented axis generator.创建一个左边的轴
- axis - generate an axis for the given selection.
- axis.scale - set the scale.
- axis.ticks - customize how ticks are generated and formatted.设置刻度数数量和格式
- axis.tickArguments - customize how ticks are generated and formatted.自定义刻度数量和格式
- axis.tickValues - set the tick values explicitly.显式定义刻度值
- axis.tickFormat - set the tick format explicitly.显式定义刻度格式
- axis.tickSize - set the size of the ticks.设置刻度规模
- axis.tickSizeInner - set the size of inner ticks.
- axis.tickSizeOuter - set the size of outer (extent) ticks.
- axis.tickPadding - set the padding between ticks and labels.设计刻度和标记间的填充物
- axis.offset - set the pixel offset for crisp edges. 设置边缘元的像素偏移