23-4.Quantize Scales 量尺

803 阅读1分钟

Quantize Scales

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

  • d3.scaleQuantize - create a uniform quantizing linear scale.创建统一的量化线性尺。
  • quantize - compute the range value corresponding to a given domain value.创建统一的量化线性比例。
  • quantize.invertExtent - compute the domain values corresponding to a given range value.计算与给定范围值对应的域值。
  • quantize.domain - set the input domain.设置输入域。
  • quantize.range - set the output range.设置输出范围。
  • quantize.ticks - compute representative values from the domain.计算域中的代表性值。
  • quantize.tickFormat - format ticks for human consumption.为人类使用设置刻度的格式。
  • quantize.nice - extend the domain to nice round numbers.将域扩展到漂亮的整数。
  • quantize.thresholds - return the array of computed thresholds within the domain.返回域中计算的阈值数组。
  • quantize.copy - create a copy of this scale.创建此比例的副本。
  • d3.scaleQuantile - create a quantile quantizing linear scale.创建分位数量化线性比例
  • quantile - compute the range value corresponding to a given domain value.计算与给定域值对应的范围值。
  • quantile.invertExtent - compute the domain values corresponding to a given range value.计算与给定范围值对应的域值。
  • quantile.domain - set the input domain.设置输入域。
  • quantile.range - set the output range.设置输出范围。
  • quantile.quantiles - get the quantile thresholds.获取分位数阈值。
  • quantile.copy - create a copy of this scale.创建此比例的副本。
  • d3.scaleThreshold - create an arbitrary quantizing linear scale.创建任意量化线性比例。
  • threshold - compute the range value corresponding to a given domain value.计算与给定域值对应的范围值
  • threshold.invertExtent - compute the domain values corresponding to a given range value.计算与给定范围值对应的域值。
  • threshold.domain - set the input domain.设置输入域。
  • threshold.range - set the output range.设置输出范围。
  • threshold.copy - create a copy of this scale.创建此比例的副本。