We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb0837c commit c697346Copy full SHA for c697346
1 file changed
_posts/2017-6-1-d3.js_learning.md
@@ -123,7 +123,7 @@ d3.js的select()方法和append()方法很类似jquery的DOM操作方法,能
123
#### d3.js坐标轴
124
125

126
-饼形图并不需要坐标轴,但柱形图、气泡图以及折线图都需要坐标来呈现数据。scaleLinear和scalePower分别是线性度量尺和指数度量尺。使用axisBottom()将坐标轴放在底部,并使用scale()使用scaleLinear度量尺
+饼形图并不需要坐标轴,但柱形图、气泡图以及折线图都需要坐标来呈现数据。scaleLinear和scalePower分别是线性度量尺和指数度量尺,domain()方法定义度量尺的度量范围,range()方法定义刻度尺对应的长度。使用axisBottom()将坐标轴放在底部,并使用scale()使用scaleLinear度量尺,ticks()方法在坐标轴上添加刻度。
127
128
```javascript
129
var axisSvg = d3.select('.d3-axis .card-content').append('svg')
0 commit comments