This is a stack overflow post apparently facing the same issue. Getting plotly.js output to inherit the font-family currently in use could maybe potentially be as simple as layout:, however this does not currently work as there seems to be a hard-coded value of "Open Sans", verdana, arial, sans-serif still given by plotly.js as style attribute higher in the DOM tree (which is then inherited by the plotly.js-created elements actually having font-family: inherit). In some cases plotly.js is used for making a plot, and the output is placed in a framework/context where the user controls the font in use. This works well in cases where you know the font-family to use up front. See this pen for an example of including custom font. Enabling a custom global font-family in a plotly.js plot is today possible using layout → font → family, which has default value "Open Sans", verdana, arial, sans-serif.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |