Skip to content

Commit

Permalink
docs(dual-axes): 双轴图补充meta使用示例 (#2314)
Browse files Browse the repository at this point in the history
close: #2313

Co-authored-by: kasmine <visiky>
  • Loading branch information
visiky authored Feb 7, 2021
1 parent 98d63c6 commit 0e7b260
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/api/plots/dual-axes.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ The array of data field names to which the dot shape maps in the Y direction is

`markdown:docs/common/meta.en.md`


Example:

```ts
{
yField: ['value1', 'value2'],
meta: {
value1: {
alias: 'temperature',
},
value2: {
alias: 'altitude'
}
}
}
```

### Geometry Style

#### geometryOptions
Expand Down
16 changes: 16 additions & 0 deletions docs/api/plots/dual-axes.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ const data = [[{ time: '1991',value: 20 }], [{ time: '1992', count: 20 }]];

`markdown:docs/common/meta.zh.md`

使用示例:

```ts
{
yField: ['value1', 'value2'],
meta: {
value1: {
alias: '温度',
},
value2: {
alias: '海拔'
}
}
}
```

### 图形样式

#### geometryOptions
Expand Down

0 comments on commit 0e7b260

Please sign in to comment.