Skip to content

Commit d67d8de

Browse files
committed
Fix the showing floating value in bar chart sample1
1 parent 0436f7f commit d67d8de

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
@@ -201,7 +201,7 @@ class BarChartSample1State extends State<BarChartSample1> {
201201
),
202202
children: <TextSpan>[
203203
TextSpan(
204-
text: (rod.toY - 1).toString(),
204+
text: ((rod.toY - 1).toStringAsFixed(1)).toString(),
205205
style: const TextStyle(
206206
color: Colors.white, //widget.touchedBarColor,
207207
fontSize: 16,

0 commit comments

Comments
 (0)