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: repo_files/documentations/line_chart.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,27 +42,30 @@ FlChart(
42
42
|curveSmoothness| smoothness radius of the curve corners (works when isCurved is true) | 0.35|
43
43
|preventCurveOverShooting|prevent overshooting when draw curve line on linear sequence spots, check this [issue](https://github.com/imaNNeoFighT/fl_chart/issues/25)| false|
44
44
|isStrokeCapRound| determines whether start and end of the bar line is Qubic or Round | false|
45
-
|belowBarData| check the [BelowBarData](#BelowBarData)|BelowBarData()|
45
+
|belowBarData| check the [BarAreaData](#BarAreaData)|BarAreaData|
46
+
|aboveBarData| check the [BarAreaData](#BarAreaData)|BarAreaData|
46
47
|dotData| check the [FlDotData](#FlDotData)| FlDotData()|
47
48
48
49
49
-
### BelowBarData
50
+
### BarAreaData
50
51
|PropName|Description|default value|
51
52
|:-------|:----------|:------------|
52
-
|show|determines to show or hide the belowbar|true|
53
-
|colors|colors the below bar area, if multiple colors provided it will be gradient|[Colors.blueGrey]|
53
+
|show|determines to show or hide the below, or above bar area|false|
54
+
|colors|colors the below, or above bar area, if multiple colors provided it will be gradient|[Colors.blueGrey]|
54
55
|gradientFrom|determines start of the gradient, each number should be between 0 and 1, [Read More](https://api.flutter.dev/flutter/dart-ui/Gradient/Gradient.linear.html)|Offset(0, 0)|
55
56
|gradientTo|determines end of the gradient, each number should be between 0 and 1, [Read More](https://api.flutter.dev/flutter/dart-ui/Gradient/Gradient.linear.html)|Offset(1, 0)|
56
57
|gradientColorStops|gets the stop positions of the gradient color, [Read More](https://api.flutter.dev/flutter/dart-ui/Gradient/Gradient.linear.html)|null|
57
-
|belowSpotsLine| draw a line from each spot to the bottom of the chart|[BelowSpotsLine](#BelowSpotsLine)()|
58
+
|spotsLine| draw a line from each spot the the bottom, or top of the chart|[BarAreaSpotsLine](#BarAreaSpotsLine)()|
59
+
|cutOffY| cut the drawing below or above area to this y value (set `applyCutOffY` true if you want to set it)|null|
60
+
|applyCutOffY| determines should or shouldn't apply cutOffY (`scutOffY` should be provided)|false|
58
61
59
62
60
-
### BelowSpotsLine
63
+
### BarAreaSpotsLine
61
64
|PropName|Description|default value|
62
65
|:-------|:----------|:------------|
63
-
|show|determines show or hide the below spots line|true|
66
+
|show|determines show or hide the below, or above spots line|true|
64
67
|flLineStyle|a [FlLine](base_chart.md#FlLine) object that determines style of the line|[Colors.blueGrey]|
65
-
|checkToShowSpotBelowLine|a function to determine whether to show or hide the below line on the given spot|showAllSpotsBelowLine|
68
+
|checkToShowSpotLine|a function to determine whether to show or hide the below or above line on the given spot|showAllSpotsBelowLine|
0 commit comments