File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface CalloutOptions {
3939
4040export interface CoreLabelOptions {
4141 drawTime ?: Scriptable < DrawTime , PartialEventContext > ,
42- font ?: FontSpec
42+ font ?: Scriptable < Partial < FontSpec > , PartialEventContext > ,
4343 color ?: Scriptable < Color , PartialEventContext > ,
4444 /**
4545 * Padding of label
Original file line number Diff line number Diff line change @@ -25,13 +25,17 @@ const chart = new Chart('id', {
2525 drawTime : 'afterDraw' ,
2626 borderColor : 'red' ,
2727 label : {
28- display : true
28+ display : true ,
29+ font : ( ctx ) => ( { size : 10 } )
2930 }
3031 } ,
3132 annotations : [ {
3233 type : 'line' ,
3334 label : {
34- content : [ 'test' , 'multiple' ]
35+ content : [ 'test' , 'multiple' ] ,
36+ font : {
37+ size : 10
38+ }
3539 }
3640 } , {
3741 type : 'box' ,
You can’t perform that action at this time.
0 commit comments