Spaces:
Sleeping
Sleeping
confusing
#34
by jfiel5 - opened
app.py
CHANGED
|
@@ -118,20 +118,20 @@ bar_chart = (
|
|
| 118 |
)
|
| 119 |
|
| 120 |
|
| 121 |
-
bar_chart = (
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
)
|
| 136 |
|
| 137 |
# box = (
|
|
|
|
| 118 |
)
|
| 119 |
|
| 120 |
|
| 121 |
+
# bar_chart = (
|
| 122 |
+
# alt.Chart(df_small)
|
| 123 |
+
# .mark_bar()
|
| 124 |
+
# .encode(
|
| 125 |
+
# y=alt.Y("Agency:N", sort="-x"),
|
| 126 |
+
# x=alt.X("mean(YTD Gross):Q", title="Total Personale Expense"), # <-- take the mean
|
| 127 |
+
# tooltip=[
|
| 128 |
+
# "Agency:N",
|
| 129 |
+
# alt.Tooltip("mean(YTD Gross):Q", title="Avg YTD Gross", format="$,.0f")
|
| 130 |
+
# ],
|
| 131 |
+
# color=alt.condition(select_bar, alt.value("#4C78A8"), alt.value("#CCCCCC"))
|
| 132 |
+
# )
|
| 133 |
+
# .add_params(select_bar)
|
| 134 |
+
# .properties(width=500, height=800)
|
| 135 |
)
|
| 136 |
|
| 137 |
# box = (
|