Chart.js/docs/configuration/layout.md
2021-10-04 14:01:10 -04:00

9 lines
471 B
Markdown

# Layout
Namespace: `options.layout`, the global options for the chart layout is defined in `Chart.defaults.layout`.
| Name | Type | Default | [Scriptable](../general/options.md#scriptable-options) | Description
| ---- | ---- | ------- | :----: | -----------
| `autoPadding` | `boolean` | `true` | No | Apply automatic padding so visible elements are completely drawn.
| `padding` | [`Padding`](../general/padding.md) | `0` | Yes | The padding to add inside the chart.