import 'package:syncfusion_flutter_charts/charts.dart'; |
---|
class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Container( //Initialize chart child: SfCartesianChart() ) ) ); } } |
---|
flutter channel beta |
---|
flutter upgrade |
---|
flutter config –enable-web |
---|
flutter create. |
---|
flutter run -d chrome |
---|
Once your run the above command, the chart will render as below.