From 61dcd3117b5f07aa5c155e31689204dd58549aa0 Mon Sep 17 00:00:00 2001 From: alex2wong Date: Fri, 22 Mar 2019 17:07:33 +0800 Subject: [PATCH] Add lineHeight prop to ScaleTitleOptions Add lineHeight and padding props to ScaleTitleOptions, based on https://www.chartjs.org/docs/latest/axes/labelling.html. related issue https://github.com/chartjs/Chart.js/pull/5914#event-2037789336 --- types/chart.js/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 8fa3a42ef93a96..111c8da57fd519 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -426,10 +426,12 @@ declare namespace Chart { interface ScaleTitleOptions { display?: boolean; labelString?: string; + lineHeight?: number | string; fontColor?: ChartColor; fontFamily?: string; fontSize?: number; fontStyle?: string; + padding?: ChartLayoutPaddingObject | number; } interface TickOptions extends NestedTickOptions {