Include grace in LinearScaleOptions type definition (#8847)

This commit adds the `grace` option, to the LinearScaleOptions type definition
as documented here,
https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#grace. Without
this commit the TS compiler does not allow the option.

Signed-off-by: Moses Mendoza <mendoza.moses@gmail.com>
This commit is contained in:
Moses Mendoza 2021-04-07 21:21:03 -07:00 committed by GitHub
parent 6c7bf2299b
commit efc1902da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2821,6 +2821,10 @@ export type LinearScaleOptions = CartesianScaleOptions & {
* Adjustment used when calculating the minimum data value.
*/
suggestedMax?: number;
/**
* Percentage (string ending with %) or amount (number) for added room in the scale range above and below data.
*/
grace?: string | number;
ticks: {
/**