File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,12 @@ export interface Layout {
421421 xanchor : "auto" | "left" | "center" | "right" ;
422422 yanchor : "auto" | "top" | "middle" | "bottom" ;
423423 pad : Partial < Padding > ;
424+ subtitle :
425+ | string
426+ | Partial < {
427+ text : string ;
428+ font : Partial < Font > ;
429+ } > ;
424430 } > ;
425431 titlefont : Partial < Font > ;
426432 autosize : boolean ;
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ const trace2 = {
3131const data = [ trace1 , trace2 ] ;
3232const tickangle : "auto" = "auto" ;
3333const layout = {
34- title : "Sales Growth" ,
34+ title : {
35+ text : "Sales Growth" ,
36+ subtitle : "Annual sales growth between 1999 and 2002" ,
37+ } ,
3538 xaxis : {
3639 title : "Year" ,
3740 showgrid : false ,
You can’t perform that action at this time.
0 commit comments