Skip to content
Open
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
15 changes: 15 additions & 0 deletions bizCharts/zh/api/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@

```

#### `autoWrap`
* 类型:Boolean
* 描述:图例项过多时是否自动换行(用于分类图例)
* 默认值:true,自动换行


#### `marker`
* 类型:String | Function
Expand Down Expand Up @@ -388,3 +393,13 @@ marker = {(x, y, r) => {
</Chart>
```
![image | left ](https://img.alicdn.com/tfs/TB1..5Ma8fH8KJjy1XbXXbLdXXa-1600-856.png)

### 常见问题
1. 隐藏图例
```js
chart.legend(false); // 隐藏全部图例
chart.legend('x', false); // 只隐藏 x 维度对应的图例
Copy link
Contributor

Choose a reason for hiding this comment

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

demo 都用react写法 { visibleLegen ? <legend name="[字段名]"} /> : undefiend }

```
2. 图例显示位置不够

调整 padding 值。