From 4f6d9d844072e6e1cbac49f483a231e1ab4969fb Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Thu, 16 Jul 2020 01:11:16 +0300 Subject: [PATCH] Fix links to fonts.md (#7623) --- docs/docs/axes/labelling.md | 2 +- docs/docs/axes/radial/linear.md | 2 +- docs/docs/axes/styling.md | 2 +- docs/docs/configuration/title.md | 2 +- docs/docs/configuration/tooltip.md | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/axes/labelling.md b/docs/docs/axes/labelling.md index 125977667..44e682bbb 100644 --- a/docs/docs/axes/labelling.md +++ b/docs/docs/axes/labelling.md @@ -13,7 +13,7 @@ The scale label configuration is nested under the scale configuration in the `sc | `display` | `boolean` | `false` | If true, display the axis title. | `align` | `string` | `'center'` | Alignment of the axis title. Possible options are `'start'`, `'center'` and `'end'` | `labelString` | `string` | `''` | The text for the title. (i.e. "# of People" or "Response Choices"). -| `font` | `Font` | `defaults.font` | See [Fonts](fonts.md) +| `font` | `Font` | `defaults.font` | See [Fonts](../general/fonts.md) | `padding` | `number`\|`object` | `4` | Padding to apply around scale labels. Only `top` and `bottom` are implemented. ## Creating Custom Tick Formats diff --git a/docs/docs/axes/radial/linear.md b/docs/docs/axes/radial/linear.md index 05aaee292..d5cd6e2dc 100644 --- a/docs/docs/axes/radial/linear.md +++ b/docs/docs/axes/radial/linear.md @@ -133,7 +133,7 @@ The following options are used to configure the point labels that are shown on t | ---- | ---- | ------- | ------- | ----------- | `display` | `boolean` | | `true` | if true, point labels are shown. | `callback` | `function` | | | Callback function to transform data labels to point labels. The default implementation simply returns the current string. -| `font` | `Font` | Yes | `defaults.font` | See [Fonts](fonts.md) +| `font` | `Font` | Yes | `defaults.font` | See [Fonts](../general/fonts.md) The scriptable context is the same as for the [Angle Line Options](#angle-line-options). diff --git a/docs/docs/axes/styling.md b/docs/docs/axes/styling.md index fced70958..0e101eb75 100644 --- a/docs/docs/axes/styling.md +++ b/docs/docs/axes/styling.md @@ -44,7 +44,7 @@ The tick configuration is nested under the scale configuration in the `ticks` ke | ---- | ---- | :-------------------------------: | ------- | ----------- | `callback` | `function` | | | Returns the string representation of the tick value as it should be displayed on the chart. See [callback](../axes/labelling.md#creating-custom-tick-formats). | `display` | `boolean` | | `true` | If true, show tick labels. -| `font` | `Font` | Yes | `defaults.font` | See [Fonts](fonts.md) +| `font` | `Font` | Yes | `defaults.font` | See [Fonts](../general/fonts.md) | `major` | `object` | | `{}` | [Major ticks configuration](#major-tick-configuration). | `padding` | `number` | | `0` | Sets the offset of the tick labels from the axis | `reverse` | `boolean` | | `false` | Reverses order of tick labels. diff --git a/docs/docs/configuration/title.md b/docs/docs/configuration/title.md index d1d5d6123..9601ef1d5 100644 --- a/docs/docs/configuration/title.md +++ b/docs/docs/configuration/title.md @@ -13,7 +13,7 @@ The title configuration is passed into the `options.title` namespace. The global | `align` | `string` | `'center'` | Alignment of the title. [more...](#align) | `display` | `boolean` | `false` | Is the title shown? | `position` | `string` | `'top'` | Position of title. [more...](#position) -| `font` | `Font` | `defaults.font` | See [Fonts](fonts.md) +| `font` | `Font` | `defaults.font` | See [Fonts](../general/fonts.md) | `padding` | number|{top: number, bottom: number} | `10` | Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately. | `lineHeight` | number|string | `1.2` | Height of an individual line of text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height). | `text` | string|string[] | `''` | Title text to display. If specified as an array, text is rendered on multiple lines. diff --git a/docs/docs/configuration/tooltip.md b/docs/docs/configuration/tooltip.md index fcecd887e..6978f8d4d 100644 --- a/docs/docs/configuration/tooltip.md +++ b/docs/docs/configuration/tooltip.md @@ -17,14 +17,14 @@ The tooltip configuration is passed into the `options.tooltips` namespace. The g | `itemSort` | `function` | | Sort tooltip items. [more...](#sort-callback) | `filter` | `function` | | Filter tooltip items. [more...](#filter-callback) | `backgroundColor` | `Color` | `'rgba(0, 0, 0, 0.8)'` | Background color of the tooltip. -| `titleFont` | `Font` | `{style: 'bold', color: '#fff'}` | See [Fonts](fonts.md). +| `titleFont` | `Font` | `{style: 'bold', color: '#fff'}` | See [Fonts](../general/fonts.md). | `titleAlign` | `string` | `'left'` | Horizontal alignment of the title text lines. [more...](#alignment) | `titleSpacing` | `number` | `2` | Spacing to add to top and bottom of each title line. | `titleMarginBottom` | `number` | `6` | Margin to add on bottom of title section. -| `bodyFont` | `Font` | `{color: '#fff'}` | See [Fonts](fonts.md). +| `bodyFont` | `Font` | `{color: '#fff'}` | See [Fonts](../general/fonts.md). | `bodyAlign` | `string` | `'left'` | Horizontal alignment of the body text lines. [more...](#alignment) | `bodySpacing` | `number` | `2` | Spacing to add to top and bottom of each tooltip item. -| `footerFont` | `Font` | `{style: 'bold', color: '#fff'}` | See [Fonts](fonts.md). +| `footerFont` | `Font` | `{style: 'bold', color: '#fff'}` | See [Fonts](../general/fonts.md). | `footerAlign` | `string` | `'left'` | Horizontal alignment of the footer text lines. [more...](#alignment) | `footerSpacing` | `number` | `2` | Spacing to add to top and bottom of each footer line. | `footerMarginTop` | `number` | `6` | Margin to add before drawing the footer. -- 2.47.3