antvis / antvis/G2

FacetRect 配置 title 不符合预期

Open
#4,576 0 comments 0 reactions 1 assignee Claimed by @pearmini View on GitHub
v5
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

分面设置了 `mark.axis.x.title` 的时候 title 会多次出现。

![image](https://user-images.githubusercontent.com/49330279/212222359-b719cbcb-19aa-4989-8bad-61dafa51c124.png)

```ts
export function anscombePointFacetRectRow(): G2Spec {
return {
type: 'facetRect',
width: 928,
height: 270,
paddingBottom: 50,
data: {
type: 'fetch',
value: 'data/anscombe.csv',
},
encode: {
x: 'series',
},
children: [
{
type: 'point',
inset: 10,
encode: {
x: 'x',
y: 'y',
},
style: {
stroke: '#000',
},
axis: { x: { title: 'X' } }, // 配置代码
},
],
};
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.