Skip to content

Commit

Permalink
colors changing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossana-code committed Jun 20, 2024
1 parent 296368c commit 7324857
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/odi_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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})
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit 7324857

Please sign in to comment.