Skip to content

Commit e6fabbd

Browse files
committed
Make drawBehindEverything property default to true in AxisTitles class, imaNNeo#1097.
1 parent 91fdee2 commit e6fabbd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## newVersion
22
* **IMPROVEMENT** (by @imaNNeo) Remove assertion to check to provide only one of `color` or `gradient` property in the [BarChartRodData](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/bar_chart.md#barchartroddata) and [BackgroundBarChartRodData](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/bar_chart.md#backgroundbarchartroddata), #1121.
3+
* **IMPROVEMENT** (by @imaNNeo) Make `drawBehindEverything` property default to `true` in [AxisTitles](https://github.com/imaNNeo/fl_chart/blob/master/repo_files/documentations/base_chart.md#axistitle) class, #1097.
34
* **BUGFIX** (by @imaNNeo) Show `0` instead of `-0` in some edge-cases in the default titles
45

56
## 0.60.0

lib/src/chart/base/axis_chart/axis_chart_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class AxisTitles with EquatableMixin {
226226
bool? drawBehindEverything,
227227
}) : axisNameSize = axisNameSize ?? 16,
228228
sideTitles = sideTitles ?? SideTitles(),
229-
drawBelowEverything = drawBehindEverything ?? false;
229+
drawBelowEverything = drawBehindEverything ?? true;
230230

231231
/// Determines the size of [axisName]
232232
final double axisNameSize;

repo_files/documentations/base_chart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
|axisNameSize| Determines the size of [axisName] | `16`|
2323
|axisNameWidget| It shows the name of axis (you can pass a Widget)| `null`|
2424
|sideTitles| It accepts a [SideTitles](#SideTitles) which is responsible to show your axis side titles| `SideTitles()`|
25-
|drawBehindEverything| If titles are showing on top of your tooltip, you can draw them behind everything.| `false`|
25+
|drawBehindEverything| If titles are showing on top of your tooltip, you can draw them behind everything.| `true`|
2626

2727
### SideTitles
2828
|PropName|Description|default value|

0 commit comments

Comments
 (0)