mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Define bounds as a field common to all cartesian axes options (#9438)
Associated with #9437.
This commit is contained in:
parent
991f151f51
commit
8dc7696348
9
types/index.esm.d.ts
vendored
9
types/index.esm.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user