d3.scale

Scales
continuouscompute the range value corresponding to a given domain value.
continuous.invertcompute the domain value corresponding to a given range value.
continuous.domainset the input domain.
continuous.rangeset the output range.
continuous.rangeRoundset the output range and enable rounding.
continuous.clampenable clamping to the domain or range.
continuous.interpolateset the output interpolator.
continuous.tickscompute representative values from the domain.
continuous.tickFormatformat ticks for human consumption.
continuous.niceextend the domain to nice round numbers.
continuous.copycreate a copy of this scale.
d3.scaleLinearcreate a quantitative linear scale.
d3.scalePowcreate a quantitative power scale.
powcompute the range value corresponding to a given domain value.
pow.invertcompute the domain value corresponding to a given range value.
pow.exponentset the power exponent.
pow.domainset the input domain.
pow.rangeset the output range.
pow.rangeRoundset the output range and enable rounding.
pow.clampenable clamping to the domain or range.
pow.interpolateset the output interpolator.
pow.tickscompute representative values from the domain.
pow.tickFormatformat ticks for human consumption.
pow.niceextend the domain to nice round numbers.
pow.copycreate a copy of this scale.
d3.scaleSqrtcreate a quantitative power scale with exponent 0.5.
d3.scaleLogcreate a quantitative logarithmic scale.
logcompute the range value corresponding to a given domain value.
log.invertcompute the domain value corresponding to a given range value.
log.baseset the logarithm base.
log.domainset the input domain.
log.rangeset the output range.
log.rangeRoundset the output range and enable rounding.
log.clampenable clamping to the domain or range.
log.interpolateset the output interpolator.
log.tickscompute representative values from the domain.
log.tickFormatformat ticks for human consumption.
log.niceextend the domain to nice round numbers.
log.copycreate a copy of this scale.
d3.scaleIdentitycreate a quantitative identity scale.
d3.scaleTimecreate a linear scale for time.
timecompute the range value corresponding to a given domain value.
time.invertcompute the domain value corresponding to a given range value.
time.domainset the input domain.
time.rangeset the output range.
time.rangeRoundset the output range and enable rounding.
time.clampenable clamping to the domain or range.
time.interpolateset the output interpolator.
time.tickscompute representative values from the domain.
time.tickFormatformat ticks for human consumption.
time.niceextend the domain to nice round times.
time.copycreate a copy of this scale.
d3.scaleUtccreate a linear scale for UTC.
Sequential Scales
d3.scaleSequentialcreate a sequential scale.
sequential.interpolatorset the scale’s output interpolator.
Diverging Scales
d3.scaleDivergingcreate a diverging scale.
diverging.interpolatorset the scale’s output interpolator.
Quantize Scales
d3.scaleQuantizecreate a uniform quantizing linear scale.
quantizecompute the range value corresponding to a given domain value.
quantize.invertExtentcompute the domain values corresponding to a given range value.
quantize.domainset the input domain.
quantize.rangeset the output range.
quantize.niceextend the domain to nice round numbers.
quantize.tickscompute representative values from the domain.
quantize.tickFormatformat ticks for human consumption.
quantize.copycreate a copy of this scale.
d3.scaleQuantilecreate a quantile quantizing linear scale.
quantilecompute the range value corresponding to a given domain value.
quantile.invertExtentcompute the domain values corresponding to a given range value.
quantile.domainset the input domain.
quantile.rangeset the output range.
quantile.quantilesget the quantile thresholds.
quantile.copycreate a copy of this scale.
d3.scaleThresholdcreate an arbitrary quantizing linear scale.
thresholdcompute the range value corresponding to a given domain value.
threshold.invertExtentcompute the domain values corresponding to a given range value.
threshold.domainset the input domain.
threshold.rangeset the output range.
threshold.copycreate a copy of this scale.
Ordinal Scales
d3.scaleOrdinalcreate an ordinal scale.
ordinalcompute the range value corresponding to a given domain value.
ordinal.domainset the input domain.
ordinal.rangeset the output range.
ordinal.unknownset the output value for unknown inputs.
ordinal.copycreate a copy of this scale.
d3.scaleImplicita special unknown value for implicit domains.
d3.scaleBandcreate an ordinal band scale.
bandcompute the band start corresponding to a given domain value.
band.domainset the input domain.
band.rangeset the output range.
band.rangeRoundset the output range and enable rounding.
band.roundenable rounding.
band.paddingInnerset padding between bands.
band.paddingOuterset padding outside the first and last bands.
band.paddingset padding outside and between bands.
band.alignset band alignment, if there is extra space.
band.bandwidthget the width of each band.
band.stepget the distance between the starts of adjacent bands.
band.copycreate a copy of this scale.
d3.scalePointcreate an ordinal point scale.
pointcompute the point corresponding to a given domain value.
point.domainset the input domain.
point.rangeset the output range.
point.rangeRoundset the output range and enable rounding.
point.roundenable rounding.
point.paddingset padding outside the first and last point.
point.alignset point alignment, if there is extra space.
point.bandwidthreturns zero.
point.stepget the distance between the starts of adjacent points.
point.copycreate a copy of this scale.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值