You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/graphic-style.en.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,8 @@ G2Plot provides support for linear gradients and circular gradients by default.
133
133
> Note: `l` indicates the use of linear gradient, the green font is variable, filled by the user, separated by a blank.
134
134
135
135
```ts
136
-
// Use gradient color stroke, gradient angle is 0, gradient starting point color #ffffff, midpoint gradient color #7ec2f3, ending gradient color #1890ff
136
+
// Use gradient color stroke, gradient angle is 0, gradient starting point color #ffffff,
137
+
// midpoint gradient color #7ec2f3, ending gradient color #1890ff
137
138
stroke: 'l(0) 0:#ffffff 0.5:#7ec2f3 1:#1890ff';
138
139
```
139
140
@@ -169,7 +170,11 @@ Result:
169
170
170
171
```ts
171
172
// example
172
-
// Use gradient color to fill, the center coordinate of the starting circle of the gradient is the center point of the bounding box of the filled object, the radius is 0.1 times (the diagonal length of the bounding box / 2), the color of the starting point of the gradient #ffffff , The gradient color at the midpoint is #7ec2f3, and the gradient color at the end is #1890ff
173
+
// Use gradient color to fill, the center coordinate of the starting circle of the gradient is
174
+
// the center point of the bounding box of the filled object, the radius is 0.1 times (the
175
+
// diagonal length of the bounding box / 2), the color of the starting point of the gradient
176
+
// #ffffff , The gradient color at the midpoint is #7ec2f3, and the gradient color at the end
0 commit comments