Skip to content

Commit c697346

Browse files
committed
d3
1 parent bb0837c commit c697346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_posts/2017-6-1-d3.js_learning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ d3.js的select()方法和append()方法很类似jquery的DOM操作方法,能
123123
#### d3.js坐标轴
124124

125125
![d3.js坐标轴demo](../assets/img/2017-6-1-3.jpg)
126-
饼形图并不需要坐标轴,但柱形图、气泡图以及折线图都需要坐标来呈现数据。scaleLinear和scalePower分别是线性度量尺和指数度量尺。使用axisBottom()将坐标轴放在底部,并使用scale()使用scaleLinear度量尺
126+
饼形图并不需要坐标轴,但柱形图、气泡图以及折线图都需要坐标来呈现数据。scaleLinear和scalePower分别是线性度量尺和指数度量尺,domain()方法定义度量尺的度量范围,range()方法定义刻度尺对应的长度。使用axisBottom()将坐标轴放在底部,并使用scale()使用scaleLinear度量尺,ticks()方法在坐标轴上添加刻度。
127127

128128
```javascript
129129
var axisSvg = d3.select('.d3-axis .card-content').append('svg')

0 commit comments

Comments
 (0)