Got error when setting font weight of annotation text

Allow me to reply myself:

The issue is solved by upgrading plotly from v5.19.0 to v5.24.1

And, as the document shows, we should assign an integer btw 1 and 1000 to the “weight” property.

1 Like