Spaces:
Sleeping
Sleeping
summing bar chart instead of average
#32
by jfiel5 - opened
app.py
CHANGED
|
@@ -90,7 +90,7 @@ bar_chart = (
|
|
| 90 |
.mark_bar()
|
| 91 |
.encode(
|
| 92 |
y=alt.Y("Agency:N", sort="-x"),
|
| 93 |
-
x=alt.X("
|
| 94 |
tooltip=[
|
| 95 |
"Agency:N",
|
| 96 |
alt.Tooltip("mean(YTD Gross):Q", title="Avg YTD Gross", format="$,.0f")
|
|
|
|
| 90 |
.mark_bar()
|
| 91 |
.encode(
|
| 92 |
y=alt.Y("Agency:N", sort="-x"),
|
| 93 |
+
x=alt.X("sum(YTD Gross):Q", title="Total Personale Expense"), # <-- take the mean
|
| 94 |
tooltip=[
|
| 95 |
"Agency:N",
|
| 96 |
alt.Tooltip("mean(YTD Gross):Q", title="Avg YTD Gross", format="$,.0f")
|