From: Filip Borkiewicz Date: Mon, 19 Jul 2021 17:06:12 +0000 (+0000) Subject: Define bounds as a field common to all cartesian axes options (#9438) X-Git-Tag: v3.5.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc76963484ccd1091ac80724420625c09d573d8;p=thirdparty%2FChart.js.git Define bounds as a field common to all cartesian axes options (#9438) Associated with #9437. --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 5e5b12f5e..80b336914 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -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. */