You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/axes/styling.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,3 +35,27 @@ The tick configuration is nested under the scale configuration in the `ticks` ke
35
35
| `fontSize` | `Number` | `12` | Font size for the tick labels.
36
36
| `fontStyle` | `String` | `'normal'` | Font style for the tick labels, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
37
37
| `reverse` | `Boolean` | `false` | Reverses order of tick labels.
38
+
| `minor` | `object` | `{}` | Minor ticks configuration. Ommited options are inherited from options above.
39
+
| `major` | `object` | `{}` | Major ticks configuration. Ommited options are inherited from options above.
40
+
41
+
## Minor Tick Configuration
42
+
The minorTick configuration is nested under the ticks configuration in the `minor` key. It defines options for the minor tick marks that are generated by the axis. Omitted options are inherited from `ticks` configuration.
43
+
44
+
| Name | Type | Default | Description
45
+
| -----| ---- | --------| -----------
46
+
| `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).
47
+
| `fontColor` | Color | `'#666'` | Font color for tick labels.
48
+
| `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the tick labels, follows CSS font-family options.
49
+
| `fontSize` | `Number` | `12` | Font size for the tick labels.
50
+
| `fontStyle` | `String` | `'normal'` | Font style for the tick labels, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
51
+
52
+
## Major Tick Configuration
53
+
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.
54
+
55
+
| Name | Type | Default | Description
56
+
| -----| ---- | --------| -----------
57
+
| `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).
58
+
| `fontColor` | Color | `'#666'` | Font color for tick labels.
59
+
| `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the tick labels, follows CSS font-family options.
60
+
| `fontSize` | `Number` | `12` | Font size for the tick labels.
61
+
| `fontStyle` | `String` | `'normal'` | Font style for the tick labels, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
0 commit comments