diff --git a/README.md b/README.md index 01a03b2..929a224 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,15 @@ Import the package: import 'package:flutter_circular_chart/flutter_circular_chart.dart'; ``` -Create chart data entry objects: +Create a [GlobalKey](https://docs.flutter.io/flutter/widgets/GlobalKey-class.html) to be able to access the chart and update its data: ``` final GlobalKey _chartKey; +``` +Create chart data entry objects: + +``` List data = [ new CircularStackEntry( [ @@ -55,7 +59,8 @@ List data = [ ), ]; ``` -Create an `AnimatedCircularChart`: + +Create an `AnimatedCircularChart`, passing it the `_chartKey` and initial `data`: ``` @override