Skip to content

Commit

Permalink
Add lineHeight prop to ScaleTitleOptions
Browse files Browse the repository at this point in the history
Add lineHeight and padding props to ScaleTitleOptions, based on https://www.chartjs.org/docs/latest/axes/labelling.html. related issue chartjs/Chart.js#5914 (comment)
  • Loading branch information
alex2wong committed Mar 22, 2019
1 parent 14d3206 commit 61dcd31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/chart.js/index.d.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit 61dcd31

Please sign in to comment.