mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Add warning about chart types overriding plugin defaults (#9787)
This commit is contained in:
parent
40e88ba45c
commit
2f4962f750
@ -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?
|
||||
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user