Skip to content

Commit

Permalink
Add documentation on context format
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Nov 11, 2019
1 parent 09cc1e4 commit d92d619
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/axes/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ The grid line configuration is nested under the scale configuration in the `grid
| `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.
| `z` | `number` | `0` | z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.

For function arguments, the function is passed a context object that is of the form:

```javscript
{
scale: // Scale object
tick: // Tick object
}
```

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

Expand Down

0 comments on commit d92d619

Please sign in to comment.