From: stockiNail Date: Mon, 1 Mar 2021 20:06:01 +0000 (+0100) Subject: Fixes sample in the doc about missing animations configuration (#8549) X-Git-Tag: v3.0.0-beta.13~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6ef46651b1c804b23cb705de601b1fc1e07c09;p=thirdparty%2FChart.js.git Fixes sample in the doc about missing animations configuration (#8549) --- diff --git a/docs/docs/configuration/animations.mdx b/docs/docs/configuration/animations.mdx index dc816121f..65ea5f67f 100644 --- a/docs/docs/configuration/animations.mdx +++ b/docs/docs/configuration/animations.mdx @@ -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 + } } } }