Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLUT-860276 Migrated the code with new charts. #6

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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