Skip to content

Commit d92d619

Browse files
committed
Add documentation on context format
1 parent 09cc1e4 commit d92d619

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/axes/styling.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ The grid line configuration is nested under the scale configuration in the `grid
2121
| `offsetGridLines` | `boolean` | `false` | If true, grid lines will be shifted to be between labels. This is set to `true` for a bar chart by default.
2222
| `z` | `number` | `0` | z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.
2323

24+
For function arguments, the function is passed a context object that is of the form:
25+
26+
```javscript
27+
{
28+
scale: // Scale object
29+
tick: // Tick object
30+
}
31+
```
32+
2433
## Tick Configuration
2534
The tick configuration is nested under the scale configuration in the `ticks` key. It defines options for the tick marks that are generated by the axis.
2635

0 commit comments

Comments
 (0)