From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 9 Jun 2020 21:15:36 +0000 (-0700) Subject: Fix link to animations docs (#7484) X-Git-Tag: v3.0.0-beta.2~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac8142b4dc37154ee266f44dc541932a87c34fac;p=thirdparty%2FChart.js.git Fix link to animations docs (#7484) --- diff --git a/docs/docs/developers/api.md b/docs/docs/developers/api.md index 0cb6fc0fb..5e875146e 100644 --- a/docs/docs/developers/api.md +++ b/docs/docs/developers/api.md @@ -30,7 +30,7 @@ myLineChart.update(); // Calling update now animates the position of March from > **Note:** replacing the data reference (e.g. `myLineChart.data = {datasets: [...]}` only works starting **version 2.6**. Prior that, replacing the entire data object could be achieved with the following workaround: `myLineChart.config.data = {datasets: [...]}`. -A `mode` string can be provided to indicate what should be updated and what animation configuration should be used. Core calls this method using any of `'active'`, `'hide'`, `'reset'`, `'resize'`, `'show'` or `undefined`. `'none'` is also a supported mode for skipping animations for single update. Please see [animations](../configuration/animations.md) docs for more details. +A `mode` string can be provided to indicate what should be updated and what animation configuration should be used. Core calls this method using any of `'active'`, `'hide'`, `'reset'`, `'resize'`, `'show'` or `undefined`. `'none'` is also a supported mode for skipping animations for single update. Please see [animations](../configuration/animations.mdx) docs for more details. Example: @@ -178,7 +178,7 @@ var visible = chart.getDataVisibility(2); ## hide(datasetIndex) -Sets the visibility for the given dataset to false. Updates the chart and animates the dataset with `'hide'` mode. This animation can be configured under the `hide` key in animation options. Please see [animations](../configuration/animations.md) docs for more details. +Sets the visibility for the given dataset to false. Updates the chart and animates the dataset with `'hide'` mode. This animation can be configured under the `hide` key in animation options. Please see [animations](../configuration/animations.mdx) docs for more details. ```javascript chart.hide(1); // hides dataset at index 1 and does 'hide' animation. @@ -186,7 +186,7 @@ chart.hide(1); // hides dataset at index 1 and does 'hide' animation. ## show(datasetIndex) -Sets the visibility for the given dataset to true. Updates the chart and animates the dataset with `'show'` mode. This animation can be configured under the `show` key in animation options. Please see [animations](../configuration/animations.md) docs for more details. +Sets the visibility for the given dataset to true. Updates the chart and animates the dataset with `'show'` mode. This animation can be configured under the `show` key in animation options. Please see [animations](../configuration/animations.mdx) docs for more details. ```javascript chart.show(1); // shows dataset at index 1 and does 'show' animation. diff --git a/docs/docs/getting-started/v3-migration.md b/docs/docs/getting-started/v3-migration.md index 8476b4948..d568395d1 100644 --- a/docs/docs/getting-started/v3-migration.md +++ b/docs/docs/getting-started/v3-migration.md @@ -151,7 +151,7 @@ options: { #### Animations -Animation system was completely rewritten in Chart.js v3. Each property can now be animated separately. Please see [animations](../configuration/animations.md) docs for details. +Animation system was completely rewritten in Chart.js v3. Each property can now be animated separately. Please see [animations](../configuration/animations.mdx) docs for details. #### Customizability