mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 09:46:51 +01:00
Fix links to fonts.md (#7623)
This commit is contained in:
committed by
Evert Timberg
parent
cb9292d6e1
commit
f301785c6b
@@ -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
|
||||
|
||||
@@ -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).
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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` | <code>number|{top: number, bottom: number}</code> | `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` | <code>number|string</code> | `1.2` | Height of an individual line of text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height).
|
||||
| `text` | <code>string|string[]</code> | `''` | Title text to display. If specified as an array, text is rendered on multiple lines.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user