We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var quantizeScale = d3.scaleQuantize() .domain([0, 100]) // 数据范围, 会平均分成三部分对应range的三个值 .range(['red', 'white', 'green']) // 映射范围 console.log(quantizeScale(22)) // red console.log(quantizeScale(50)) // white console.log(quantizeScale(88)) // green console.log(quantizeScale.invertExtent('white')) // [33.333333336, 66.666667] , 从颜色倒推回数值范围
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: