From 9918c94be70a73f67a51b08219d5189cf5bae4ed Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Fri, 27 Dec 2024 13:17:31 +0100 Subject: [PATCH] Fix scatter chart format issue --- lib/src/chart/scatter_chart/scatter_chart_data.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/chart/scatter_chart/scatter_chart_data.dart b/lib/src/chart/scatter_chart/scatter_chart_data.dart index 8659379cb..64f0704eb 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_data.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_data.dart @@ -250,7 +250,8 @@ class ScatterSpot extends FlSpot with EquatableMixin { lerpDouble(a.x, b.x, t)!, lerpDouble(a.y, b.y, t)!, show: b.show, - renderPriority: a.renderPriority + (t * (b.renderPriority - a.renderPriority)).round(), + renderPriority: a.renderPriority + + (t * (b.renderPriority - a.renderPriority)).round(), dotPainter: a.dotPainter.lerp(a.dotPainter, b.dotPainter, t), );