I found the solution in this post:
https://discuss.streamlit.io/t/black-and-white-colors-are-only-seen-when-plotly-is-downloaded-as-html-file-or-a-png-or-jpeg-file/37851/3?u=niko_koy
Niko_Koy
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| All Plots generated via Plotly turns black when Downloaded in HTML/PDF format via the Streamlit application both locally and on the Web | 3 | 2157 | March 7, 2023 | |
| Black and white colors are only seen when Plotly is downloaded as html file or a png or jpeg file | 12 | 5265 | May 24, 2024 | |
| Unable to download plot as png plotly in streamlit embedded app | 1 | 443 | March 24, 2023 | |
| Plotly Chart to PDF in Streamlit using st.download_button without saving the chart as HTML? | 6 | 1703 | October 10, 2023 | |
| Saving the Plotly Chart as .png or .jpeg file format locally | 4 | 8120 | January 4, 2022 |