Skip to content

Commit 8f5381c

Browse files
Update site/docs/api/chart/legend.zh.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent ecf5f12 commit 8f5381c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/docs/api/chart/legend.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const nameToPercentMap = Object.fromEntries(
240240
</Chart>
241241
```
242242

243-
> **注意**:name 会自动显示itemFormatter 返回值会附加在 name 之后,默认渲染格式为 `${name}: ${value}`。因此 itemFormatter 只需返回值部分,无需包含 name。
243+
> **注意**`name` 会自动显示`itemFormatter` 的返回值会作为图例项的值,并通过 `valuePrefix` (默认为 `': '`) 连接在 `name` 之后。因此 `itemFormatter` 只需返回格式化后的值部分,无需包含 `name`
244244
245245
### 自定义图例项
246246

0 commit comments

Comments
 (0)