Skip to content

Commit b1b540f

Browse files
authored
Fix the showing floating value in bar chart sample1 (#2011)
1 parent 2820735 commit b1b540f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lib/presentation/samples/bar/bar_chart_sample1.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class BarChartSample1State extends State<BarChartSample1> {
202202
),
203203
children: <TextSpan>[
204204
TextSpan(
205-
text: (rod.toY - 1).toString(),
205+
text: ((rod.toY - 1).toStringAsFixed(1)).toString(),
206206
style: const TextStyle(
207207
color: Colors.white, //widget.touchedBarColor,
208208
fontSize: 16,

0 commit comments

Comments
 (0)