23-1.continuous scales 连续尺

806 阅读3分钟

Continuous Scales

Map a continuous, quantitative domain to a continuous range. 将一个连续的、 量化的 域映射到一个连续的范围。

  • continuous - compute the range value corresponding to a given domain value.计算给定域值对应的范围值
  • continuous.invert - compute the domain value corresponding to a given range value.计算给定范围值对应的域值。
  • continuous.domain - set the input domain.设置输入域
  • continuous.range - set the output range.设置输出范围
  • continuous.rangeRound - set the output range and enable rounding.设置输出范围并启用舍入。
  • continuous.clamp - enable clamping to the domain or range.使夹持到域或范围内。
  • continuous.unknown - set the output value for unknown inputs.对未知输入设定输出值。
  • continuous.interpolate - set the output interpolator.设置输出插值器。
  • continuous.ticks - compute representative values from the domain.从域中计算代表值。
  • continuous.tickFormat - format ticks for human consumption.用于人类消费的格式标签。
  • continuous.nice - extend the domain to nice round numbers.将域扩展为良好的圆数。
  • continuous.copy - create a copy of this scale.创建此量表的副本。
  • d3.tickFormat - format ticks for human consumption.用于人类消费的格式标签。
  • d3.scaleLinear - create a quantitative linear scale.创建一个量化的线性尺度。
  • d3.scalePow - create a quantitative power scale.创建一个量化的幂刻度尺
  • pow - compute the range value corresponding to a given domain value.计算与给定域值对应的范围值。
  • pow.invert - compute the domain value corresponding to a given range value.计算与给定范围值对应的域值。
  • pow.exponent - set the power exponent.设置幂指数。
  • pow.domain - set the input domain.设置输入域。
  • pow.range - set the output range.设置输出范围。
  • pow.rangeRound - set the output range and enable rounding.设置输出范围并启用舍入。
  • pow.clamp - enable clamping to the domain or range.启用对域或范围的钳制
  • pow.interpolate - set the output interpolator.设置输出插值器。
  • pow.ticks - compute representative values from the domain.计算域中的代表性值。
  • pow.tickFormat - format ticks for human consumption.为人类消费设置刻度的格式。
  • pow.nice - extend the domain to nice round numbers.将域扩展到漂亮的整数。
  • pow.copy - create a copy of this scale.创建此比例的副本
  • d3.scaleSqrt - create a quantitative power scale with exponent 0.5.创建指数为0.5的定量幂标度。
  • d3.scaleLog - create a quantitative logarithmic scale.创建一个定量对数刻度。
  • log - compute the range value corresponding to a given domain value.计算与给定域值对应的范围值。
  • log.invert - compute the domain value corresponding to a given range value.计算与给定范围值对应的域值。
  • log.base - set the logarithm base.设置对数基数
  • log.domain - set the input domain.设置输入域
  • log.range - set the output range.设置输出范围
  • log.rangeRound - set the output range and enable rounding.设置输出范围并启用舍入。
  • log.clamp - enable clamping to the domain or range.启用对域或范围的钳制。
  • log.interpolate - set the output interpolator.设置输出插值器。
  • log.ticks - compute representative values from the domain.计算域中的代表性值。
  • log.tickFormat - format ticks for human consumption.为人类消费设置刻度的格式
  • log.nice - extend the domain to nice round numbers.将域扩展到漂亮的整数。
  • log.copy - create a copy of this scale.创建此比例的副本。
  • d3.scaleSymlog - create a symmetric logarithmic scale.创建对称对数刻度
  • symlog.constant - set the constant of a symlog scale.设置符号刻度的常数。
  • d3.scaleIdentity - creates an identity scale.创建标识比例。
  • d3.scaleRadial - creates a radial scale.创建一个径向尺度。
  • d3.scaleTime - create a linear scale for time.为时间创建一个线性尺度
  • time - compute the range value corresponding to a given domain value.计算给定域值对应的范围值
  • time.invert - compute the domain value corresponding to a given range value.计算给定范围值对应的域值
  • time.domain - set the input domain.设置输入域。
  • time.range - set the output range.设置输出范围。
  • time.rangeRound - set the output range and enable rounding.设置输出范围并启用舍入。
  • time.clamp - enable clamping to the domain or range.启用对域或范围的钳制。
  • time.interpolate - set the output interpolator.设置输出插值器。
  • time.ticks - compute representative values from the domain.计算域中的代表性值。
  • time.tickFormat - format ticks for human consumption.为人类消费设置刻度的格式。
  • time.nice - extend the domain to nice round times.将域扩展到良好的循环时间。
  • time.copy - create a copy of this scale.创建此比例的副本。
  • d3.scaleUtc - create a linear scale for UTC.为UTC创建线性比例