From 6a8731af14df745aff245a3c167c74a3e9dacea8 Mon Sep 17 00:00:00 2001 From: BPraveenBalu Date: Wed, 13 Dec 2023 14:39:02 +0530 Subject: [PATCH] Migrated the code with new charts. --- cartesian_animated_chart/lib/main.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cartesian_animated_chart/lib/main.dart b/cartesian_animated_chart/lib/main.dart index 7ab59ce..6354eee 100644 --- a/cartesian_animated_chart/lib/main.dart +++ b/cartesian_animated_chart/lib/main.dart @@ -60,7 +60,7 @@ class _MyHomePageState extends State<_MyHomePage> { height: 50, ), Container( - height: 550, + height: 450, child: SfCartesianChart( backgroundColor: Colors.white, plotAreaBorderWidth: 0, @@ -72,7 +72,7 @@ class _MyHomePageState extends State<_MyHomePage> { minimum: 20, maximum: 50, interval: 5), - series: >[ + series: >[ LineSeries<_SalesData, num>( // Animation duration for this line series set to 2000 animationDuration: 2000, @@ -98,7 +98,7 @@ class _MyHomePageState extends State<_MyHomePage> { _chartSeriesController?.animate(); }, child: Text('Animate line series', - textScaleFactor: 1, + textScaler: TextScaler.linear(1), style: TextStyle(color: Colors.white)), ))), Container( @@ -110,7 +110,7 @@ class _MyHomePageState extends State<_MyHomePage> { addChartData(); }, child: Text('Add data point', - textScaleFactor: 1, + textScaler: TextScaler.linear(1), style: TextStyle(color: Colors.white)), ))), ],