Spaces:
Runtime error
Runtime error
viz
Browse files- app.py +9 -2
- error_analysis/utils/style_hacks.py +12 -12
app.py
CHANGED
@@ -82,10 +82,10 @@ def data_comparison(df):
|
|
82 |
).interactive()
|
83 |
|
84 |
legend = alt.Chart(df).mark_point().encode(
|
85 |
-
y=alt.Y('slice:N', axis=alt.Axis(orient='right'), title=""),
|
86 |
x=alt.X("label"),
|
87 |
shape=alt.Shape('label', scale=alt.Scale(
|
88 |
-
range=['circle', 'diamond']), legend=None),
|
89 |
color=color
|
90 |
).add_selection(
|
91 |
selection
|
@@ -97,6 +97,13 @@ def data_comparison(df):
|
|
97 |
grid=False
|
98 |
).configure_view(
|
99 |
strokeOpacity=0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
)
|
101 |
|
102 |
return layered
|
|
|
82 |
).interactive()
|
83 |
|
84 |
legend = alt.Chart(df).mark_point().encode(
|
85 |
+
y=alt.Y('slice:N', axis=alt.Axis(orient='right'), title="",),
|
86 |
x=alt.X("label"),
|
87 |
shape=alt.Shape('label', scale=alt.Scale(
|
88 |
+
range=['circle', 'diamond']), legend=None),
|
89 |
color=color
|
90 |
).add_selection(
|
91 |
selection
|
|
|
97 |
grid=False
|
98 |
).configure_view(
|
99 |
strokeOpacity=0
|
100 |
+
).configure_legend(
|
101 |
+
strokeColor='gray',
|
102 |
+
fillColor='#EEEEEE',
|
103 |
+
padding=10,
|
104 |
+
cornerRadius=10,
|
105 |
+
orient='top-right'
|
106 |
+
|
107 |
)
|
108 |
|
109 |
return layered
|
error_analysis/utils/style_hacks.py
CHANGED
@@ -22,18 +22,9 @@ def init_style():
|
|
22 |
padding:10px 10px 10px 10px;
|
23 |
}
|
24 |
/* Main Panel*/
|
25 |
-
.
|
26 |
-
|
27 |
-
|
28 |
-
padding-right: {padding_right}rem;
|
29 |
-
padding-left: -200px;
|
30 |
-
padding-bottom: {padding_bottom}rem;
|
31 |
-
margin-left: -500px;
|
32 |
-
}}
|
33 |
-
.reportview-container .main {{
|
34 |
-
color: {COLOR};
|
35 |
-
background-color: {BACKGROUND_COLOR};
|
36 |
-
}}
|
37 |
.css-18e3th9 {
|
38 |
padding:10px 10px 10px -200px;
|
39 |
}
|
@@ -68,6 +59,15 @@ def init_style():
|
|
68 |
.sectionHeader {
|
69 |
font-size:10px;
|
70 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
/* text input*/
|
73 |
.st-e5 {
|
|
|
22 |
padding:10px 10px 10px 10px;
|
23 |
}
|
24 |
/* Main Panel*/
|
25 |
+
.css-gvhdpn.e1tzin5v0 {
|
26 |
+
margin-left: -200px;
|
27 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
.css-18e3th9 {
|
29 |
padding:10px 10px 10px -200px;
|
30 |
}
|
|
|
59 |
.sectionHeader {
|
60 |
font-size:10px;
|
61 |
}
|
62 |
+
h1 {
|
63 |
+
font-family: sans-serif;
|
64 |
+
font-weight: 500;
|
65 |
+
font-size: 1.5 rem;
|
66 |
+
color: rgb(250, 250, 250);
|
67 |
+
padding: 1.25rem 0px 1rem;
|
68 |
+
margin: 0px;
|
69 |
+
line-height: 1.4;
|
70 |
+
}
|
71 |
|
72 |
/* text input*/
|
73 |
.st-e5 {
|