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
feat: add gradientArea property for LineChartBarData (#1925)
* feat: add `gradientArea` property for `LineChartBarData`
* test: add test for `gradientArea`
* docs: add documents for `gradientArea`
* Set the default value for `gradientArea` in `LineChartBarData`'s constructor and add docs for `LineChartGradientArea`
* updated CHANGELOG.md
Copy file name to clipboardExpand all lines: repo_files/documentations/line_chart.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ When you change the chart's state, it animates to the new state internally (usin
45
45
|spots| list of [FlSpot](base_chart.md#FlSpot)'s x and y coordinates that the line go through it| []
46
46
|color|color of the line|[Colors.redAccent]|
47
47
|gradient| You can use any [Gradient](https://api.flutter.dev/flutter/dart-ui/Gradient-class.html) here. such as [LinearGradient](https://api.flutter.dev/flutter/painting/LinearGradient-class.html) or [RadialGradient](https://api.flutter.dev/flutter/painting/RadialGradient-class.html)|null|
48
+
|gradientArea| determines the area where the gradient is applied |null|
48
49
|barWidth| gets the stroke width of the line bar|2.0|
49
50
|isCurved| curves the corners of the line on the spot's positions| false|
50
51
|curveSmoothness| smoothness radius of the curve corners (works when isCurved is true) | 0.35|
0 commit comments