From c9d44ae051f6d17ef2a873993f8c51e3d3fe9b8d Mon Sep 17 00:00:00 2001 From: stock Date: Fri, 2 Apr 2021 17:44:23 +0200 Subject: [PATCH 1/3] Fixes typo on padding doc --- docs/general/padding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/general/padding.md b/docs/general/padding.md index 9d3462bcd59..97d376c9eab 100644 --- a/docs/general/padding.md +++ b/docs/general/padding.md @@ -6,7 +6,7 @@ Padding values in Chart options can be supplied in couple of different formats. If this value is a number, it is applied to all sides (left, top, right, bottom). -For exmaple, defining a 20px padding to all sides of chart: +For example, defining a 20px padding to all sides of chart: ```javascript let chart = new Chart(ctx, { From df382dac8f9ad8a3963fe445e18db82282132d46 Mon Sep 17 00:00:00 2001 From: stock Date: Fri, 2 Apr 2021 17:51:18 +0200 Subject: [PATCH 2/3] adds column to the options table for scriptable --- docs/configuration/title.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/configuration/title.md b/docs/configuration/title.md index 056725b33c7..50bda6f3f97 100644 --- a/docs/configuration/title.md +++ b/docs/configuration/title.md @@ -6,16 +6,16 @@ The chart title defines text to draw at the top of the chart. Namespace: `options.plugins.title`, the global options for the chart title is defined in `Chart.defaults.plugins.title`. -| Name | Type | Default | Description +| Name | Type | Default | [Scriptable](../general/options.md#scriptable-options) | Description | ---- | ---- | ------- | ----------- -| `align` | `string` | `'center'` | Alignment of the title. [more...](#align) -| `color` | [`Color`](../general/colors.md) | `Chart.defaults.color` | Color of text. -| `display` | `boolean` | `false` | Is the title shown? -| `fullSize` | `boolean` | `true` | Marks that this box should take the full width/height of the canvas. If `false`, the box is sized and placed above/beside the chart area. -| `position` | `string` | `'top'` | Position of title. [more...](#position) -| `font` | `Font` | `{style: 'bold'}` | See [Fonts](../general/fonts.md) -| `padding` | [`Padding`](../general/padding.md) | `10` | Padding to apply around the title. Only `top` and `bottom` are implemented. -| `text` | `string`\|`string[]` | `''` | Title text to display. If specified as an array, text is rendered on multiple lines. +| `align` | `string` | `'center'` | Yes | Alignment of the title. [more...](#align) +| `color` | [`Color`](../general/colors.md) | Yes | `Chart.defaults.color` | Color of text. +| `display` | `boolean` | `false` | Yes | Is the title shown? +| `fullSize` | `boolean` | `true` | Yes | Marks that this box should take the full width/height of the canvas. If `false`, the box is sized and placed above/beside the chart area. +| `position` | `string` | `'top'` | Yes | Position of title. [more...](#position) +| `font` | `Font` | `{style: 'bold'}` | Yes | See [Fonts](../general/fonts.md) +| `padding` | [`Padding`](../general/padding.md) | `10` | Yes | Padding to apply around the title. Only `top` and `bottom` are implemented. +| `text` | `string`\|`string[]` | `''` | Yes | Title text to display. If specified as an array, text is rendered on multiple lines. ### Position From 661ffa285e463dc3ae6eb86b12e6f95b2060166d Mon Sep 17 00:00:00 2001 From: stock Date: Fri, 2 Apr 2021 17:53:33 +0200 Subject: [PATCH 3/3] Fixes table headers --- docs/configuration/title.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/title.md b/docs/configuration/title.md index 50bda6f3f97..4e9f30f004b 100644 --- a/docs/configuration/title.md +++ b/docs/configuration/title.md @@ -7,9 +7,9 @@ The chart title defines text to draw at the top of the chart. Namespace: `options.plugins.title`, the global options for the chart title is defined in `Chart.defaults.plugins.title`. | Name | Type | Default | [Scriptable](../general/options.md#scriptable-options) | Description -| ---- | ---- | ------- | ----------- +| ---- | ---- | ------- | :----: | ----------- | `align` | `string` | `'center'` | Yes | Alignment of the title. [more...](#align) -| `color` | [`Color`](../general/colors.md) | Yes | `Chart.defaults.color` | Color of text. +| `color` | [`Color`](../general/colors.md) | `Chart.defaults.color` | Yes | Color of text. | `display` | `boolean` | `false` | Yes | Is the title shown? | `fullSize` | `boolean` | `true` | Yes | Marks that this box should take the full width/height of the canvas. If `false`, the box is sized and placed above/beside the chart area. | `position` | `string` | `'top'` | Yes | Position of title. [more...](#position)