Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions site/docs/components/plots/area.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ order: 2

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/bar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ conversionTag: {

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/bidirectional-bar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/box.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ p12 p11 p13

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/bullet.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/circle-packing.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/column.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ conversionTag: {

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/dual-axes.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ order: 5

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/funnel.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ order: 6

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/gauge.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/heatmap.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ order: 7

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

修复链接路径,避免生成重复路径

当前相对链接会被解析为 /components/plots/components/plots/overview#通用配置项,导致 404。请改为以 / 开头的绝对路径,或使用 ../overview 形式。

-通用属性参考:[通用配置](components/plots/overview#通用配置项)
+通用属性参考:[通用配置](/components/plots/overview#通用配置项)

如需一次性检查其他文档中的同类链接,可运行:


🏁 Script executed:

#!/bin/bash
# 查找可能的相对链接写法
rg --line-number --no-heading "](/?components/plots/overview#通用配置项" site/docs/components/plots/*.zh.md

Length of output: 1338


🏁 Script executed:

#!/bin/bash
# 查找未加前导斜杠的 overview 相对链接
rg --line-number --no-heading "\]\(components/plots/overview#通用配置项\)" site/docs/components/plots/*.zh.md

Length of output: 3703


修复通用配置链接为绝对路径

相对链接 (components/plots/overview#通用配置项) 会被解析成 /components/plots/components/plots/overview#通用配置项 导致 404,请统一改为绝对路径:

- 通用属性参考:[通用配置](components/plots/overview#通用配置项)
+ 通用属性参考:[通用配置](/components/plots/overview#通用配置项)

以下文档中均出现了该相对链接,请一并修改:

  • site/docs/components/plots/area.zh.md
  • site/docs/components/plots/bar.zh.md
  • site/docs/components/plots/bidirectional-bar.zh.md
  • site/docs/components/plots/box.zh.md
  • site/docs/components/plots/bullet.zh.md
  • site/docs/components/plots/circle-packing.zh.md
  • site/docs/components/plots/column.zh.md
  • site/docs/components/plots/dual-axes.zh.md
  • site/docs/components/plots/funnel.zh.md
  • site/docs/components/plots/gauge.zh.md
  • site/docs/components/plots/heatmap.zh.md
  • site/docs/components/plots/histogram.zh.md
  • site/docs/components/plots/line.zh.md
  • site/docs/components/plots/liquid.zh.md
  • site/docs/components/plots/pie.zh.md
  • site/docs/components/plots/radar.zh.md
  • site/docs/components/plots/radial-bar.zh.md
  • site/docs/components/plots/rose.zh.md
  • site/docs/components/plots/sankey.zh.md
  • site/docs/components/plots/scatter.zh.md
  • site/docs/components/plots/stock.zh.md
  • site/docs/components/plots/sunburst.zh.md
  • site/docs/components/plots/treemap.zh.md
  • site/docs/components/plots/venn.zh.md
  • site/docs/components/plots/violin.zh.md
  • site/docs/components/plots/waterfall.zh.md
  • site/docs/components/plots/word-cloud.zh.md

可用下面命令批量替换:

rg -l "\]\(components/plots/overview#通用配置项\)" site/docs/components/plots/*.zh.md \
  | xargs sed -i 's#(components/plots/overview#通用配置项#(/components/plots/overview#通用配置项#g'
🤖 Prompt for AI Agents
In site/docs/components/plots/heatmap.zh.md around lines 42 to 43, the relative
link to 通用配置 (components/plots/overview#通用配置项) causes a 404 error because it
resolves incorrectly. Change this relative link to an absolute path by prefixing
it with a slash, i.e., use (/components/plots/overview#通用配置项). Also, apply this
fix to all other listed .zh.md files in the same directory by replacing the
relative link with the absolute path as shown in the provided batch command.

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/histogram.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ order: 8

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/line.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ order: 1

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/liquid.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ order: 9

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/pie.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ order: 3

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/radar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/radial-bar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ order: 21

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/rose.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/sankey.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/scatter.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ order: 5

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/stock.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/sunburst.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/treemap.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/venn.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ order: 10

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/violin.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ order: 13

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/waterfall.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ order: 14

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
2 changes: 2 additions & 0 deletions site/docs/components/plots/word-cloud.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ order: 5

## 配置项

通用属性参考:[通用配置](components/plots/overview#通用配置项)

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
### 概览

|配置项|说明|类型|默认值|
Expand Down
54 changes: 0 additions & 54 deletions site/docs/options/plots/animate/overview.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,60 +143,6 @@ createRoot(document.getElementById('container')).render(<Demo />);

The animations above are all excessive animations and do not involve data updates. Ant Design Charts also provides the ability to create keyframe animations. use `chart.timingKeyframe` to create a time container that holds a series of views and applies smooth transitions to related graphical elements within those views. The corresponding relationship is specified by two channels, **key** and **groupKey**.

```js | ob { autoMount: true }
import { Column } from '@ant-design/plots';
import React from 'react';
import { createRoot } from 'react-dom';

const Demo = () => {

const config =```js | ob { autoMount: true }
import { Chart } from '@antv/g2';

(async () => {
const data = await fetch(
'https://gw.alipayobjects.com/os/antvdemo/assets/data/scatter.json',
).then((res) => res.json());



const chart = new Chart({
container: 'container',
});

// Refer to the description of css animation
const keyframe = chart
.timingKeyframe() // Create container
.attr('iterationCount', 2) // Number of iterations
.attr('direction', 'alternate') // Direction
.attr('duration', 1000); // Duration

keyframe
.interval()
.data(data)
.encode('x', 'gender')
.encode('y', 'weight')
.encode('color', 'gender')
.encode('key', 'gender'); // Specify key

keyframe
.point()
.data(data)
.encode('x', 'height')
.encode('y', 'weight')
.encode('color', 'gender')
.encode('shape', 'point')
.encode('groupKey', 'gender'); // Specify groupKey

chart.render();
```;

return <Column {...config} />;
};

createRoot(document.getElementById('container')).render(<Demo />);
```

## Time Series Animation

**TimingSequence** is still under development, please stay tuned.
Loading