Skip to content

Commit

Permalink
Define bounds as a field common to all cartesian axes options
Browse files Browse the repository at this point in the history
Associated with #9437.
  • Loading branch information
boreq committed Jul 19, 2021
1 parent 991f151 commit 6ff8b2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/index.esm.d.ts
Expand Up @@ -2830,6 +2830,15 @@ export interface TickOptions {
}

export interface CartesianScaleOptions extends CoreScaleOptions {
/**
* Scale boundary strategy (bypassed by min/max time options)
* - `data`: make sure data are fully visible, ticks outside are removed
* - `ticks`: make sure ticks are fully visible, data outside are truncated
* @since 2.7.0
* @default 'ticks'
*/
bounds: 'ticks' | 'data';

/**
* Position of the axis.
*/
Expand Down

0 comments on commit 6ff8b2f

Please sign in to comment.