Skip to content

Commit

Permalink
padding tip
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 4, 2024
1 parent d128cff commit 29911e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/marks/waffle.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Plot.waffleX([apples], {y: ["apples"]}).plot({height: 240})
:::info
The number of rows in the waffle above is guaranteed to be an integer, but it might not be a multiple or factor of the *x*-axis tick interval. For example, the waffle might have 15 rows while the *x*-axis shows ticks every 100 units.
:::
:::tip
While you can’t control the number of rows (or columns) directly, you can affect it via the **padding** option on the corresponding band scale. Padding defaults to 0.1; a higher value may produce more rows, while a lower (or zero) value may produce fewer rows.
:::

## Waffle options

Expand Down

0 comments on commit 29911e3

Please sign in to comment.