Briemcc commited on
Commit
6bb3d23
·
verified ·
1 Parent(s): da5d652

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -97,7 +97,7 @@ bar_chart = (
97
  alt.Chart(df_jcopy)
98
  .mark_bar()
99
  .encode(
100
- y=alt.Y("Agency:N", sort="-x", ),
101
  x=alt.X("mean(YTD Gross):Q", axis=alt.Axis(labelLimit=0, title="Total Personale Expense")),
102
  tooltip=[
103
  "Agency:N",
@@ -106,7 +106,7 @@ bar_chart = (
106
  color=alt.condition(select_bar, alt.value("#4C78A8"), alt.value("#CCCCCC"))
107
  )
108
  .add_params(select_bar)
109
- .properties(width=500, height=800)
110
  )
111
 
112
  # box = (
@@ -138,7 +138,7 @@ strip = (
138
  alt.Chart(df_jcopy)
139
  .mark_circle(size=60, opacity=0.6)
140
  .encode(
141
- x=alt.X("YTD Gross:Q"),
142
  y=alt.Y("Agency:N", title=""),
143
  color=alt.Color("Agency:N",title='Agency'),
144
  tooltip=[
@@ -155,5 +155,9 @@ strip = (
155
  )
156
  .properties(width=400, height=200)
157
  )
 
 
 
 
158
  dashboard = bar_chart & strip
159
  dashboard
 
97
  alt.Chart(df_jcopy)
98
  .mark_bar()
99
  .encode(
100
+ y=alt.Y("Agency:N", sort="-x",title="Agency" ),
101
  x=alt.X("mean(YTD Gross):Q", axis=alt.Axis(labelLimit=0, title="Total Personale Expense")),
102
  tooltip=[
103
  "Agency:N",
 
106
  color=alt.condition(select_bar, alt.value("#4C78A8"), alt.value("#CCCCCC"))
107
  )
108
  .add_params(select_bar)
109
+ .properties(width=500, height=800, title="Average YTD Gross Pay per Agency")
110
  )
111
 
112
  # box = (
 
138
  alt.Chart(df_jcopy)
139
  .mark_circle(size=60, opacity=0.6)
140
  .encode(
141
+ x=alt.X("YTD Gross:Q", title="Individual Employee YTD Gross Pay"),
142
  y=alt.Y("Agency:N", title=""),
143
  color=alt.Color("Agency:N",title='Agency'),
144
  tooltip=[
 
155
  )
156
  .properties(width=400, height=200)
157
  )
158
+
159
+
160
+
161
+
162
  dashboard = bar_chart & strip
163
  dashboard