Skip to content

Commit

Permalink
Merge pull request #6 from BPraveenBalu/main
Browse files Browse the repository at this point in the history
FLUT-860276 Migrated the code with new charts.
  • Loading branch information
LavanyaGowtham2021 committed Dec 18, 2023
2 parents af2f34a + 6a8731a commit 9b8d51e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cartesian_animated_chart/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class _MyHomePageState extends State<_MyHomePage> {
height: 50,
),
Container(
height: 550,
height: 450,
child: SfCartesianChart(
backgroundColor: Colors.white,
plotAreaBorderWidth: 0,
Expand All @@ -72,7 +72,7 @@ class _MyHomePageState extends State<_MyHomePage> {
minimum: 20,
maximum: 50,
interval: 5),
series: <ChartSeries<_SalesData, num>>[
series: <LineSeries<_SalesData, num>>[
LineSeries<_SalesData, num>(
// Animation duration for this line series set to 2000
animationDuration: 2000,
Expand All @@ -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(
Expand All @@ -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)),
))),
],
Expand Down

0 comments on commit 9b8d51e

Please sign in to comment.