Skip to content

Commit a984162

Browse files
committed
Fix ticks.minor and ticks.major configuration issues
1 parent 87e44fa commit a984162

File tree

5 files changed

+329
-143
lines changed

5 files changed

+329
-143
lines changed

docs/axes/styling.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ The minorTick configuration is nested under the ticks configuration in the `mino
5454
| `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)).
5555

5656
## Major Tick Configuration
57-
The majorTick configuration is nested under the ticks configuration in the `major` key. It defines options for the major tick marks that are generated by the axis. Omitted options are inherited from `ticks` configuration.
57+
The majorTick configuration is nested under the ticks configuration in the `major` key. It defines options for the major tick marks that are generated by the axis. Omitted options are inherited from `ticks` configuration. These options are disabled by default.
5858

5959
| Name | Type | Default | Description
6060
| -----| ---- | --------| -----------
61+
| `enabled` | `Boolean` | `false` | If true, major tick options are used to show major ticks.
6162
| `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).
6263
| `fontColor` | `Color` | `'#666'` | Font color for tick labels.
6364
| `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the tick labels, follows CSS font-family options.

0 commit comments

Comments
 (0)