mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
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:
parent
6c7bf2299b
commit
efc1902da7
4
types/index.esm.d.ts
vendored
4
types/index.esm.d.ts
vendored
@ -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: {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user