Skip to content

Documentation / @ripl/core / BandScaleOptions

Type Alias: BandScaleOptions ​

BandScaleOptions = object

Defined in: packages/core/src/scales/band.ts:18

Options for a band scale, controlling padding between and around bands, alignment, and rounding.

Properties ​

alignment? ​

optional alignment?: number

Defined in: packages/core/src/scales/band.ts:24

Where to place the bands within any slack range, 0 (start) to 1 (end).


innerPadding? ​

optional innerPadding?: number

Defined in: packages/core/src/scales/band.ts:20

Padding between adjacent bands, as a fraction of the step (0–1).


outerPadding? ​

optional outerPadding?: number

Defined in: packages/core/src/scales/band.ts:22

Padding before the first and after the last band, as a fraction of the step.


round? ​

optional round?: boolean

Defined in: packages/core/src/scales/band.ts:26

Whether to round band positions and widths to whole pixels for crisp edges.