Ilyas KHIAT
commited on
Commit
·
a6409ad
1
Parent(s):
ffd811b
cartographie
Browse files- .streamlit/.env +1 -1
- pp_viz.py +3 -2
.streamlit/.env
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
API_TOKEN_PERPLEXITYAI = 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
|
2 |
-
OPENAI_API_KEY = sk-
|
|
|
1 |
API_TOKEN_PERPLEXITYAI = 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
|
2 |
+
OPENAI_API_KEY = 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
|
pp_viz.py
CHANGED
@@ -9,6 +9,7 @@ import os
|
|
9 |
from streamlit_vertical_slider import vertical_slider
|
10 |
|
11 |
def display_viz():
|
|
|
12 |
st.header("")
|
13 |
st.title("Visualisation des parties prenantes")
|
14 |
|
@@ -23,8 +24,8 @@ def display_viz():
|
|
23 |
c = (
|
24 |
alt.Chart(df)
|
25 |
.mark_circle(size=300)
|
26 |
-
.encode(x="partie_prenante", y=alt.Y("pouvoir",scale=alt.Scale(domain=[0,100])), color="code couleur"
|
27 |
-
)
|
28 |
|
29 |
number_of_sliders = len(partie_prenante)
|
30 |
st.write("Modifiez le pouvoir des parties prenantes en utilisant les sliders ci-dessous")
|
|
|
9 |
from streamlit_vertical_slider import vertical_slider
|
10 |
|
11 |
def display_viz():
|
12 |
+
|
13 |
st.header("")
|
14 |
st.title("Visualisation des parties prenantes")
|
15 |
|
|
|
24 |
c = (
|
25 |
alt.Chart(df)
|
26 |
.mark_circle(size=300)
|
27 |
+
.encode(x="partie_prenante", y=alt.Y("pouvoir",scale=alt.Scale(domain=[0,100])), color="code couleur")
|
28 |
+
).configure_legend(orient='bottom')
|
29 |
|
30 |
number_of_sliders = len(partie_prenante)
|
31 |
st.write("Modifiez le pouvoir des parties prenantes en utilisant les sliders ci-dessous")
|