比例尺

数值比例尺

  • d3.scale.linear - construct a linear quantitative scale.
  • linear - get the range value corresponding to a given domain value.
  • linear.invert - get the domain value corresponding to a given range value.
  • linear.domain - get or set the scale's input domain.
  • linear.range - get or set the scale's output range.
  • linear.rangeRound - set the scale's output range, and enable rounding.
  • linear.interpolate - get or set the scale's output interpolator.
  • linear.clamp - enable or disable clamping of the output range.
  • linear.nice - extend the scale domain to nice round numbers.
  • linear.ticks - get representative values from the input domain.
  • linear.tickFormat - get a formatter for displaying tick values.
  • linear.copy - create a new scale from an existing scale.
  • d3.scale.sqrt - construct a quantitative scale with a square root transform.
  • d3.scale.pow - construct a quantitative scale with an exponential transform.
  • pow - get the range value corresponding to a given domain value.
  • pow.invert - get the domain value corresponding to a given range value.
  • pow.domain - get or set the scale's input domain.
  • pow.range - get or set the scale's output range.
  • pow.rangeRound - set the scale's output range, and enable rounding.
  • pow.interpolate - get or set the scale's output interpolator.
  • pow.clamp - enable or disable clamping of the output range.
  • pow.nice - extend the scale domain to nice round numbers.
  • pow.ticks - get representative values from the input domain.
  • pow.tickFormat - get a formatter for displaying tick values.
  • pow.exponent - get or set the exponent power.
  • pow.copy - create a new scale from an existing scale.
  • d3.scale.log - construct a quantitative scale with an logarithmic transform.
  • log - get the range value corresponding to a given domain value.
  • log.invert - get the domain value corresponding to a given range value.
  • log.domain - get or set the scale's input domain.
  • log.range - get or set the scale's output range.
  • log.rangeRound - set the scale's output range, and enable rounding.
  • log.interpolate - get or set the scale's output interpolator.
  • log.clamp - enable or disable clamping of the output range.
  • log.nice - extend the scale domain to nice powers of ten.
  • log.ticks - get representative values from the input domain.
  • log.tickFormat - get a formatter for displaying tick values.
  • log.copy - create a new scale from an existing scale.
  • d3.scale.quantize - construct a linear quantitative scale with a discrete output range.
  • quantize - get the range value corresponding to a given domain value.
  • quantize.invertExtent - get the domain values for the specified range value.
  • quantize.domain - get or set the scale's input domain.
  • quantize.range - get or set the scale's output range (as discrete values).
  • quantize.copy - create a new scale from an existing scale.
  • d3.scale.threshold - construct a threshold scale with a discrete output range.
  • threshold - get the range value corresponding to a given domain value.
  • threshold.invertExtent - get the domain values for the specified range value.
  • threshold.domain - get or set the scale's input domain.
  • threshold.range - get or set the scale's output range (as discrete values).
  • threshold.copy - create a new scale from an existing scale.
  • d3.scale.quantile - construct a quantitative scale mapping to quantiles.
  • quantile - get the range value corresponding to a given domain value.
  • quantile.invertExtent - get the domain values for the specified range value.
  • quantile.domain - get or set the scale's input domain (as discrete values).
  • quantile.range - get or set the scale's output range (as discrete values).
  • quantile.quantiles - get the scale's quantile bin thresholds.
  • quantile.copy - create a new scale from an existing scale.
  • d3.scale.identity - construct a linear identity scale.
  • identity - the identity function.
  • identity.invert - equivalent to identity; the identity function.
  • identity.domain - get or set the scale's domain and range.
  • identity.range - equivalent to identity.domain.
  • identity.ticks - get representative values from the domain.
  • identity.tickFormat - get a formatter for displaying tick values.
  • identity.copy - create a new scale from an existing scale.

序数比例尺

  • d3.scale.ordinal - construct an ordinal scale.
  • ordinal - get the range value corresponding to a given domain value.
  • ordinal.domain - get or set the scale's input domain.
  • ordinal.range - get or set the scale's output range.
  • ordinal.rangePoints - divide a continuous output range for discrete points.
  • ordinal.rangeRoundPoints - divide a continuous output range for discrete points.
  • ordinal.rangeBands - divide a continuous output range for discrete bands.
  • ordinal.rangeRoundBands - divide a continuous output range for discrete bands.
  • ordinal.rangeBand - get the discrete range band width.
  • ordinal.rangeExtent - get the minimum and maximum values of the output range.
  • ordinal.copy - create a new scale from an existing scale.
  • d3.scale.category10 - construct an ordinal scale with ten categorical colors.
  • d3.scale.category20 - construct an ordinal scale with twenty categorical colors.
  • d3.scale.category20b - construct an ordinal scale with twenty categorical colors.
  • d3.scale.category20c - construct an ordinal scale with twenty categorical colors.