Define bounds as a field common to all cartesian axes options (#9438)

Associated with #9437.
This commit is contained in:
Filip Borkiewicz 2021-07-19 17:06:12 +00:00 committed by GitHub
parent 991f151f51
commit 8dc7696348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
*/