From: Evert Timberg Date: Sun, 24 Oct 2021 16:14:37 +0000 (-0400) Subject: Add warning about chart types overriding plugin defaults (#9787) X-Git-Tag: v3.6.1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f4962f7500bfbb2ab1eb31ab88bcabb0b5702cc;p=thirdparty%2FChart.js.git Add warning about chart types overriding plugin defaults (#9787) --- diff --git a/docs/configuration/legend.md b/docs/configuration/legend.md index 10fa89cd3..151a96911 100644 --- a/docs/configuration/legend.md +++ b/docs/configuration/legend.md @@ -6,6 +6,10 @@ The chart legend displays data about the datasets that are appearing on the char Namespace: `options.plugins.legend`, the global options for the chart legend is defined in `Chart.defaults.plugins.legend`. +:::warning +The bubble, doughnut, pie, and polar area charts override the tooltip defaults. To change the overrides for those chart types, the options are defined in `Chart.overrides[type].plugins.tooltip`. +::: + | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `display` | `boolean` | `true` | Is the legend shown? diff --git a/docs/configuration/tooltip.md b/docs/configuration/tooltip.md index bac1a0b94..527b15d99 100644 --- a/docs/configuration/tooltip.md +++ b/docs/configuration/tooltip.md @@ -4,6 +4,10 @@ Namespace: `options.plugins.tooltip`, the global options for the chart tooltips is defined in `Chart.defaults.plugins.tooltip`. +:::warning +The bubble, doughnut, pie, polar area, and scatter charts override the tooltip defaults. To change the overrides for those chart types, the options are defined in `Chart.overrides[type].plugins.tooltip`. +::: + | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `enabled` | `boolean` | `true` | Are on-canvas tooltips enabled?