Skip to content

Commit dfe66c8

Browse files
committed
docs(line): 体系化BI业务图表建设之折线图场景案例
1 parent 5061058 commit dfe66c8

File tree

10 files changed

+95
-51
lines changed

10 files changed

+95
-51
lines changed

examples/line/basic/design.en.md

+1-25
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,4 @@
22
title: 设计规范
33
---
44

5-
## 何时使用
6-
7-
折线图用于显示数据在一个连续的时间间隔或者时间跨度上的变化,它的特点是反映事物随时间或有序类别而变化的趋势。
8-
9-
## 数据类型
10-
11-
| 适合的数据 | 「两个连续字段数据」,或者「一个有序的分类」+「一个连续数据字段」 |
12-
| ---------------- | ----------------------------------------------------------------- |
13-
| 功能 | 观察数据的变化趋势 |
14-
| 数据与图形的映射 | 两个连续字段分别映射到横轴和纵轴 |
15-
| 适合的数据条数 | 大于两条 |
16-
17-
## 用法建议
18-
19-
<img alt="design" src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*NGoOQatmkx0AAAAAAAAAAABkARQnAQ" width="1000">
20-
21-
## 元素
22-
23-
<img alt="design" src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*uxv8RJgYx4oAAAAAAAAAAABkARQnAQ" width="800">
24-
25-
- X 轴:通常对应连续数据,值为时间,调用连续数据 X 轴。
26-
- Y 轴:通常对应连续数据,值为数字,调用连续数据 Y 轴。
27-
- 图例:通常出现在多条折线图中,用来区分不同折线代表的数据含义。
28-
- 标签:用来解释数据点的值。
29-
- 辅助元素:用来解释某个特殊的数据点的值,或标记出某个特殊含义的区域。
5+
`markdown:docs/manual/plots/line.en.md`

examples/line/basic/design.zh.md

+1-25
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,4 @@
22
title: 设计规范
33
---
44

5-
## 何时使用
6-
7-
折线图用于显示数据在一个连续的时间间隔或者时间跨度上的变化,它的特点是反映事物随时间或有序类别而变化的趋势。
8-
9-
## 数据类型
10-
11-
| 适合的数据 | 「两个连续字段数据」,或者「一个有序的分类」+「一个连续数据字段」 |
12-
| ---------------- | ----------------------------------------------------------------- |
13-
| 功能 | 观察数据的变化趋势 |
14-
| 数据与图形的映射 | 两个连续字段分别映射到横轴和纵轴 |
15-
| 适合的数据条数 | 大于两条 |
16-
17-
## 用法建议
18-
19-
<img alt="design" src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*NGoOQatmkx0AAAAAAAAAAABkARQnAQ" width="1000">
20-
21-
## 元素
22-
23-
<img alt="design" src="https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*uxv8RJgYx4oAAAAAAAAAAABkARQnAQ" width="800">
24-
25-
- X 轴:通常对应连续数据,值为时间,调用连续数据 X 轴。
26-
- Y 轴:通常对应连续数据,值为数字,调用连续数据 Y 轴。
27-
- 图例:通常出现在多条折线图中,用来区分不同折线代表的数据含义。
28-
- 标签:用来解释数据点的值。
29-
- 辅助元素:用来解释某个特殊的数据点的值,或标记出某个特殊含义的区域。
5+
`markdown:docs/manual/plots/line.zh.md`

examples/line/scenario/API.en.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`markdown:docs/api/plots/line.en.md`

examples/line/scenario/API.zh.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`markdown:docs/api/plots/line.zh.md`

examples/line/scenario/demo/meta.json

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title": {
3+
"zh": "中文分类",
4+
"en": "Category"
5+
},
6+
"demos": [
7+
{
8+
"filename": "multiple-measures-line.ts",
9+
"title": {
10+
"zh": "多指标折线图",
11+
"en": "Line plot with multiple measures"
12+
},
13+
"new": true,
14+
"screenshot": ""
15+
},
16+
{
17+
"filename": "series-multiple-measures-line.ts",
18+
"title": {
19+
"zh": "带拆分的多指标折线图",
20+
"en": "Line plot with multiple measures"
21+
},
22+
"new": true,
23+
"screenshot": ""
24+
},
25+
{
26+
"filename": "derived-measures-line.ts",
27+
"title": {
28+
"zh": "带衍生指标折线图",
29+
"en": "Line plot with derived measures"
30+
},
31+
"new": true,
32+
"screenshot": ""
33+
},
34+
{
35+
"filename": "line-sort-in-xAxis.jsx",
36+
"title": {
37+
"zh": "折线图 x 轴阅读端排序",
38+
"en": "Line plot with sort in xAxis"
39+
},
40+
"new": true,
41+
"screenshot": ""
42+
},
43+
{
44+
"filename": "line-with-data-annotation.jsx",
45+
"title": {
46+
"zh": "带数据解读折线图",
47+
"en": "Line plot with data annotation"
48+
},
49+
"new": true,
50+
"screenshot": ""
51+
}
52+
]
53+
}

examples/line/scenario/design.en.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Plot guide
3+
---
4+
5+
`markdown:examples/line/scenario/design.zh.md`

examples/line/scenario/design.zh.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: 图表指引
3+
---
4+
5+
### 多指标折线图
6+
7+
**使用场景**
8+
9+
TODO
10+
11+
12+
### 带拆分的多指标折线图
13+
14+
**使用场景**
15+
16+
TODO
17+
18+
19+
### 带衍生指标标折线图
20+
21+
**使用场景**
22+
23+
TODO
24+

examples/line/scenario/index.en.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Scenario Line
3+
order: 4
4+
---

examples/line/scenario/index.zh.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: 场景折线图
3+
order: 3
4+
---

examples/line/step/index.zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
title: 阶梯折线图
3-
order: 1
3+
order: 2
44
---

0 commit comments

Comments
 (0)