From 35afcd504a4557e586341dc2e81c696edc70587d Mon Sep 17 00:00:00 2001 From: Cooper Date: Tue, 24 May 2022 16:09:29 +0800 Subject: [PATCH] =?UTF-8?q?docs(bidirectional-bar):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=8F=8C=20y=20=E8=BD=B4=E4=B8=AD=20yAxis=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=20(#3195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 加了示例配置代码更清晰,降低理解成本。 --- docs/common/common-component.zh.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/common/common-component.zh.md b/docs/common/common-component.zh.md index 217bc28930..fce999d269 100644 --- a/docs/common/common-component.zh.md +++ b/docs/common/common-component.zh.md @@ -2,6 +2,19 @@ xAxis、yAxis 配置相同。**注意**:由于 DualAxes(双轴图) 和 BidirectionalBar(对称条形图) 是双 y 轴, yAxis 类型是以 yField 中的字段作为 `key` 值的`object`。 +```ts +双 y 轴中 yAxis 配置示例: +yAxis: { + '2016年耕地总面积': { + nice: true, + }, + '2016年转基因种植面积': { + nice: true, + min: 0, + max: 100, +}, +``` + `markdown:docs/common/axis.zh.md` #### legend