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.

D3 scalePow相关推荐

  1. d3 scale详解

    domain是定义域,就是坐标系下的值 range是值域,就是映射到svg画布上的值 1.d3.scaleLinear() 线性比例尺 domain:连续型 range:连续型 scale_l = d ...

  2. D3 v3到v5需要了解的变化

    v3 → v5 改动 js url <script src="https://d3js.org/d3.v3.js"></script><script ...

  3. d3.js v5入门之——比例尺

    比例尺是可视化中一项基本任务的便捷抽象:将抽象数据的维映射到视觉表示.尽管最常用于对定量数据进行位置编码,例如将以米为单位的测量值映射到散点图中点的像素位置,但刻度实际上可以表示任何位置编码,例如发散 ...

  4. d3js scales深入理解

    比例尺函数是这样的javascript函数: 接收通常是数字,日期,类别等data输入并且: 返回一个代表可视化元素的值,比如坐标,颜色,长度或者半径等 比例尺通常用于变换(或者说映射)抽象的数据值到 ...

  5. 从壹开始微服务 [ DDD ] 之一 ║ D3模式设计初探 与 我的计划书

    缘起 哈喽大家周四好!又是开心的一天,时间过的真快,我们的 <从壹开始 .net core 2.1 + vue 2.5 >前后端分离系列共 34 篇已经完结了,当然以后肯定还会有更新和修改 ...

  6. D3.js、HTML5、canvas 开发专题

    https://www.smartdraw.com/genogram/ http://www.mamicode.com/info-detail-1163777.html  D3折线图 https:// ...

  7. 【D3】transition API

    摘要: 动画类API 一.API 使用 1. 1 d3.ease 1.2 d3.timer Start a custom animation timer, invoking the specified ...

  8. D3.js系列——初步使用、选择元素与绑定数据

    D3 的全称是(Data-Driven Documents),顾名思义可以知道是一个被数据驱动的文档.听名字有点抽象,说简单一点,其实就是一个 JavaScript 的函数库,使用它主要是用来做数据可 ...

  9. 交互式数据可视化-D3.js(一)

    在D3中会穿插SVG 方便大家对D3对使用 SVG简介 可缩放矢量图(scalabel vector graphics),是用于描述二维矢量图形的一种图形格式,是由W3C制订的开放标准.SVG使用XM ...

最新文章

  1. 在线英汉词典 智能纠错的设计
  2. Codeforces937D Sleepy Game
  3. python几何拼贴画_图形几何图形拼贴画
  4. MySQL10061错误Access denied for user root@localhost(Windows下)
  5. C++ STL pair方法详解
  6. 手机有没有必要经常更新系统?
  7. AttachDispatch
  8. sql时间小问题汇总
  9. Android Activity绑定到Service
  10. 再说变体结构 - 回复 彬 的问题
  11. 使用ADB卸载Android内置应用
  12. 互联网公司去年到今年的大批裁员,难道程序员没有未来了吗?
  13. 20年,中国互联网主流产品的演变和逻辑
  14. 多目标水母搜索(MOJS)算法(Matlab实现)
  15. 面阵相机该如何选型?
  16. 创造与魔法怎么自建服务器,创造与魔法开服卷怎么获得 创造与魔法怎么得开服券...
  17. 【转详解步进电机工作原理】
  18. 10款超级优雅的Go语言开发工具
  19. Impala-shell卡顿分析——记一次曲折的Debug经历
  20. qq视频转码失败怎么办_测试音视频,究竟测什么?(三)

热门文章

  1. [Remoting FAQ]Loading a Remoting Host On IIS得到BadImageFormatException
  2. Python之数据分析(坐标刻度定位器、散点图、柱状图、颜色区域填充)
  3. 一篇文章带你快速入门JavaScript(自学者福利)
  4. python2.7安装报错_python2.7源码安装方式
  5. python创建列表的语句_如何使用列表作为参数创建SELECT语句? - python
  6. 使用Python标准库函数os.listdir()时的4个注意事项
  7. 批量统计多个PPTX文件中幻灯片总数量
  8. Python使用TCP协议编写会聊天的小机器人
  9. js获取display的值_JS实现多行溢出省略号思路
  10. 5渲染判断_Vue页面渲染中key的应用实例教程