Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Quantitative Scales API #33

Closed
65 tasks done
anthonime opened this issue Jun 5, 2013 · 1 comment
Closed
65 tasks done

Quantitative Scales API #33

anthonime opened this issue Jun 5, 2013 · 1 comment
Assignees
Milestone

Comments

@anthonime
Copy link
Member

LINEAR: (TEST CASE: TestLinearScale)

  • 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. (POSTPONED to Complete Scales API for missing methods #50 )
  • 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.

SQRT / POW (TEST CASE: TestPowScale)

  • 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. (POSTPONED to Complete Scales API for missing methods #50 )
  • 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. (BUGGED see Complete Scales API for missing methods #50)
  • pow.exponent - get or set the exponent power.
  • pow.copy - create a new scale from an existing scale.

LOG (TEST CASE: TestLogScale)

  • 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. (POSTPONED to Complete Scales API for missing methods #50 )
  • 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. (BUGGED see Complete Scales API for missing methods #50)
  • log.copy - create a new scale from an existing scale.

QUANTIZE

  • 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. POSTPONED to (Upgrade to 3.2.x version #63)
  • 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.

THRESHOLD (TEST CASE: TestThresholdScale)

  • 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. POSTPONED to (Upgrade to 3.2.x version #63)
  • 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.

QUANTILE (TEST CASE: TestQuantileScale)

  • 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. POSTPONED to (Upgrade to 3.2.x version #63)
  • 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.

IDENTITY (TEST CASE: TestIdentityScale)

  • 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.
@ghost ghost assigned anthonime Jul 7, 2013
@anthonime
Copy link
Member Author

@ericcitaire big step achieved ! Some methods are however only available in 3.2.x => I've created an issue for them to remember when we gonna upgrade

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant