]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update 07-Pie-Doughnut-Chart.md
authorTimofey Rechkalov <ghoul71@yandex.ru>
Sat, 24 Dec 2016 00:24:36 +0000 (05:24 +0500)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 24 Dec 2016 00:33:59 +0000 (19:33 -0500)
Fixed example in pie chart docs.

docs/07-Pie-Doughnut-Chart.md

index 0b2cc115e43c5ba33fd1d19540ba4bca1e43de1c..99830132281aa14d150286000080acb690e72d70 100644 (file)
@@ -102,8 +102,10 @@ For example, we could have a doughnut chart that animates by scaling out from th
 ```javascript
 new Chart(ctx,{
        type:"doughnut",
-       animation:{
-               animateScale:true
+       options: {
+               animation:{
+                       animateScale:true
+               }
        }
 });
 // This will create a chart with all of the default options, merged from the global config,