summing bar chart instead of average

#32
by jfiel5 - opened
Files changed (1) hide show
  1. app.py +1 -1
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("mean(YTD Gross):Q", title="Average YTD Gross"), # <-- take the mean
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")