]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixes sample in the doc about missing animations configuration (#8549)
authorstockiNail <stocki.nail@gmail.com>
Mon, 1 Mar 2021 20:06:01 +0000 (21:06 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 20:06:01 +0000 (15:06 -0500)
docs/docs/configuration/animations.mdx

index dc816121f2ae1eafdae43b9add762d9d40d7e2a3..65ea5f67f1ec0cb9c059b2659ff08d1dfc012727 100644 (file)
@@ -79,19 +79,23 @@ function example() {
       options: {
         transitions: {
           show: {
-            x: {
-                from: 0
-            },
-            y: {
-                from: 0
-            }
+            animations: {
+              x: {
+                  from: 0
+              },
+              y: {
+                  from: 0
+              }
+            }  
           },
           hide: {
-            x: {
-                to: 0
-            },
-            y: {
-                to: 0
+            animations: {
+              x: {
+                  to: 0
+              },
+              y: {
+                  to: 0
+              }
             }
           }
         }