From 732485754e59e224d8a7ae21941ade75aa3b41e0 Mon Sep 17 00:00:00 2001 From: Rossana-code Date: Fri, 21 Jun 2024 00:04:08 +0200 Subject: [PATCH] colors changing --- app/odi_streamlit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/odi_streamlit.py b/app/odi_streamlit.py index 5fd3303..e4aee92 100644 --- a/app/odi_streamlit.py +++ b/app/odi_streamlit.py @@ -1525,7 +1525,6 @@ def get_chart_82052330(df: pd.DataFrame, liste: list[str], titre: str) -> None: st.write(data["Age"]) #creer une treemap -st.plotly_chart(fig) fig = px.treemap(data, path=[data["Age"]],hover_data=[data["Age"]], color= data["Age"],color_discrete_map = { @@ -1620,7 +1619,7 @@ def get_chart_82052330(df: pd.DataFrame, liste: list[str], titre: str) -> None: fig = px.treemap(data, path=[data["Ethnicites"]], title="Répartition de l'ethnicité des personnages", - color_discrete_sequence=["#e44f43","#0b5773", + color_discrete_sequence=["#d3c922","#7bc0ac", ], ) fig.update_traces(marker={"cornerradius": 5}) @@ -1654,7 +1653,7 @@ def get_chart_82052330(df: pd.DataFrame, liste: list[str], titre: str) -> None: "Positive": "#0b5773", "Négative":"#d35a4b", "Neutre": "#7bc0ac", - "C'est compliqué": "#d3c922", + "C'est compliqué": "#D3B4E6", }, title="Répartition des sentiments envers les personnages", )