Reputation: 21
I am currently working on a Streamlit application. I use mainly Plotly and Altair for my plots. I would like to use the Altair default font type and font size for my Plotly chart titles. How can I find out the title font type and font size set as default on my Altair plots? Thanks in advance for your help.
Upvotes: 2
Views: 1265
Reputation: 49054
The charts from Altair are rendered using the JS library Vega. I believe Vega just specified whether the font should be serif, sans-serif, monospace, etc and then uses the default font in your browser for this font category. This comment from a Vega maintainer seems to suggest so as well.
There is also a vega-themes package that defines overrides to the default theme via CSS.
For font-sizes, I believe the default are what is listed in this file
Upvotes: 0