I display charts in Streamlit with Altair.
Altair uses d3-formatting to set the format of labels.
The default locale for d3-formatting is en-US, which predictably renders $ as the currency symbol. For my work, I need to render € as the currency symbol though.
This has been brought up on StackOverflow in the context of working with Jupyter Notebook before.
Jake, one of the maintainers of Altair, replied to the question:
It’s possible, but unfortunately not well supported.
If you want to adjust the locale yourself, the easiest way would be to export the chart to HTML (
chart.save('mychart.html')) then add a call to
Is it possible to set the locale for Altair charts in Streamlit?