Skip to content

Commit 26f5b30

Browse files
committed
feat: add documents of customDistribution
1 parent eee1aa3 commit 26f5b30

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

docs/assets/option/en/component/axis-common/linear-axis.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,17 @@ Truncation graphic rotation angle configuration.
113113
###${prefix} style(Object)
114114

115115
The style configuration of the truncation graphic, you can configure the line width (`lineWidth`), color (`stroke`), etc.
116+
117+
#${prefix} customDistribution(Array)
118+
119+
Supported since version **2.0.16**
120+
121+
Applies only when the axis is a linear axis. Custom interval distribution configuration, used to define the visual proportion of specific data intervals on the axis.
122+
123+
##${prefix} domain(number[])
124+
125+
The data interval [min, max].
126+
127+
##${prefix} ratio(number)
128+
129+
The proportion of the visual range this interval should occupy, value between 0 and 1.

docs/assets/option/zh/component/axis-common/linear-axis.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,17 @@
115115
###${prefix} style(Object)
116116

117117
截断图形的样式配置,可以配置线宽(`lineWidth`)、颜色(`stroke`)等。
118+
119+
#${prefix} customDistribution(Array)
120+
121+
**2.0.16**版本开始支持
122+
123+
仅当轴为线性轴时生效。自定义区间分布配置,用于定义特定数据区间在轴上的视觉占比。
124+
125+
##${prefix} domain(number[])
126+
127+
数据区间 [min, max]
128+
129+
##${prefix} ratio(number)
130+
131+
该区间在视觉范围内所占的比例,取值范围 0 到 1。

0 commit comments

Comments
 (0)