Spaces:
Running
Running
Win-rate heatmap height
Browse files
app.py
CHANGED
|
@@ -285,7 +285,7 @@ with tab_bt:
|
|
| 285 |
"y": alt.Y("A:N", sort=order, title="A", axis=alt.Axis(labelLimit=250)),
|
| 286 |
}
|
| 287 |
heat = (
|
| 288 |
-
alt.Chart(w, title=label
|
| 289 |
.mark_rect()
|
| 290 |
.encode(
|
| 291 |
**enc,
|
|
@@ -302,7 +302,7 @@ with tab_bt:
|
|
| 302 |
.mark_text(color="black")
|
| 303 |
.encode(**enc, text=alt.Text("win:Q", format=".0%"))
|
| 304 |
)
|
| 305 |
-
col.altair_chart(heat + text)
|
| 306 |
|
| 307 |
st.subheader("By month")
|
| 308 |
target = st.radio("Target", targets, horizontal=True, key="month_target")
|
|
|
|
| 285 |
"y": alt.Y("A:N", sort=order, title="A", axis=alt.Axis(labelLimit=250)),
|
| 286 |
}
|
| 287 |
heat = (
|
| 288 |
+
alt.Chart(w, title=label)
|
| 289 |
.mark_rect()
|
| 290 |
.encode(
|
| 291 |
**enc,
|
|
|
|
| 302 |
.mark_text(color="black")
|
| 303 |
.encode(**enc, text=alt.Text("win:Q", format=".0%"))
|
| 304 |
)
|
| 305 |
+
col.altair_chart((heat + text).properties(height=50 * len(order)))
|
| 306 |
|
| 307 |
st.subheader("By month")
|
| 308 |
target = st.radio("Target", targets, horizontal=True, key="month_target")
|