Skip to content

Commit 9cce768

Browse files
committed
add a font-weight attribute to the title routine
1 parent f1f7a6a commit 9cce768

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shelly/plotlyjs/static/plotlyjs/src/graph_obj.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,9 @@ plots.fontAttrs = {
15901590
}
15911591
};
15921592

1593+
// TODO make this a plot attribute?
1594+
plots.fontWeight = 'normal';
1595+
15931596
var extendFlat = Plotly.Lib.extendFlat;
15941597

15951598
plots.layoutAttributes = {
@@ -4259,7 +4262,8 @@ plots.titles = function(gd, title) {
42594262
'font-family': font,
42604263
'font-size': d3.round(fontSize,2)+'px',
42614264
fill: Plotly.Color.rgb(fontColor),
4262-
opacity: opacity*Plotly.Color.opacity(fontColor)
4265+
opacity: opacity*Plotly.Color.opacity(fontColor),
4266+
'font-weight': plots.fontWeight
42634267
})
42644268
.attr(options)
42654269
.call(Plotly.util.convertToTspans)

0 commit comments

Comments
 (0)