Skip to content

Commit

Permalink
Fix ticks.minor and ticks.major configuration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed Jan 6, 2019
1 parent 87e44fa commit 45b82d1
Show file tree
Hide file tree
Showing 5 changed files with 329 additions and 143 deletions.
3 changes: 2 additions & 1 deletion docs/axes/styling.md
Expand Up @@ -54,10 +54,11 @@ The minorTick configuration is nested under the ticks configuration in the `mino
| `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)).

## Major Tick Configuration
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.
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.

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

0 comments on commit 45b82d1

Please sign in to comment.