var pow = d3.scalePow().exponent(3)
console.log(pow(2))//输出为8
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.