8000 docs: modify mark overview by interstellarmt · Pull Request #6733 · antvis/G2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs: modify mark overview #6733

New issue

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

Merged
merged 3 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
803 changes: 532 additions & 271 deletions site/docs/manual/core/mark/overview.zh.md
8000

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/docs/manual/core/mark/point.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ order: 18

#### size

绑定 `point` 标记的 `size` 属性通道,就能绘制出 **气泡图**,此时数据字段的大小映射到图形的半径(如果是正方形则是 1/2 边长。
绑定 `point` 标记的 `size` 属性通道,就能绘制出 **气泡图**,此时数据字段的大小映射到图形的半径(如果是正方形则是 1/2 边长

```js | ob { pin: false }
(() => {
Expand Down
4 changes: 0 additions & 4 deletions site/examples/general/.polygon/index.zh.md

This file was deleted.

4 changes: 2 additions & 2 deletions site/examples/general/dual/index.en.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
title: Gauge
order: 16
title: Dual
order: 6
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"filename": "voronoi.ts",
"title": {
"zh": "Voronoi",
"zh": "沃罗诺伊图",
"en": "Voronoi"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*pohxT40PSroAAAAAAAAAAAAADmJ7AQ/original"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ const chart = new Chart({
paddingRight: 4,
});

chart.data({
type: 'fetch',
value:
'https://gw.alipayobjects.com/os/bmw-prod/5155ef81-db23-49f3-b72b-d436a219d289.json',
transform: [{ type: 'custom', callback: layout }],
});
chart
.data({
type: 'fetch',
value:
'https://gw.alipayobjects.com/os/bmw-prod/5155ef81-db23-49f3-b72b-d436a219d289.json',
transform: [{ type: 'custom', callback: layout }],
})
.legend(false);

chart
.polygon()
Expand All @@ -48,14 +50,7 @@ chart
.scale('x', { domain: [0, 1] })
.scale('y', { domain: [0, 1], range: [0, 1] })
.scale('size', { type: 'identity' })
.axis(false)
.legend('color', {
field: '学派',
size: 72,
autoWrap: true,
maxRows: 2,
cols: 6,
});
.axis(false);

chart
.text()
Expand Down
4 changes: 4 additions & 0 deletions site/examples/general/polygon/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 多边形
order: 8
---
Loading
0