Chart.js/docs/axes/cartesian/_common.md

12 lines
814 B
Markdown
Raw Normal View History

2020-11-16 21:05:29 +01:00
### Common options to all cartesian axes
Namespace: `options.scales[scaleId]`
2020-11-16 21:05:29 +01:00
| Name | Type | Default | Description
| ---- | ---- | ------- | -----------
2021-04-02 13:48:50 +02:00
| `bounds` | `string` | `'ticks'` | Determines the scale bounds. [more...](./index.md#scale-bounds)
| `position` | `string` | | Position of the axis. [more...](./index.md#axis-position)
2020-11-16 21:05:29 +01:00
| `axis` | `string` | | Which type of axis this is. Possible values are: `'x'`, `'y'`. If not set, this is inferred from the first character of the ID which should be `'x'` or `'y'`.
| `offset` | `boolean` | `false` | If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to `true` for a bar chart by default.
| `title` | `object` | | Scale title configuration. [more...](../labelling.md#scale-title-configuration)