Skip to content

Commit f8f59e8

Browse files
committed
docs: update the description of barChart.bar.style.fillOpacity
- add `function` tag to show it could be set as function - add an example #3894
1 parent 562d7ad commit f8f59e8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

docs/assets/option/en/graphic/fill-style.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ Fill color. Supports setting to pure color in ways like `rgb(255,255,255)`, `rgb
1010

1111
{{ use: graphic-gradient }}
1212

13-
#${prefix} fillOpacity(number)
13+
#${prefix} fillOpacity(number|function)
1414

15-
Fill opacity.
15+
Fill opacity. Supports dynamic setting using callback functions, with the callback function defined as follows:
16+
17+
```ts
18+
(datum: Datum) => number;
19+
```
1620

1721
#${prefix} shadowBlur(number)
1822

docs/assets/option/zh/graphic/fill-style.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010

1111
{{ use: graphic-gradient }}
1212

13-
#${prefix} fillOpacity(number)
13+
#${prefix} fillOpacity(number|function)
1414

15-
填充透明度。
15+
填充透明度。支持使用回调函数动态设置,定义如下:
16+
17+
```ts
18+
(datum: Datum) => number;
19+
```
1620

1721
#${prefix} shadowBlur(number)
1822

0 commit comments

Comments
 (0)