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? ​
optionalalignment?: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? ​
optionalinnerPadding?:number
Defined in: packages/core/src/scales/band.ts:20
Padding between adjacent bands, as a fraction of the step (0–1).
outerPadding? ​
optionalouterPadding?: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? ​
optionalround?:boolean
Defined in: packages/core/src/scales/band.ts:26
Whether to round band positions and widths to whole pixels for crisp edges.