ignacioct commited on
Commit
878e05f
Β·
1 Parent(s): 40fa6b6

contenido de los graficos traducido al castellano

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -200,7 +200,7 @@ def kpi_chart_submitted_1() -> alt.Chart:
200
  alt.Chart(data)
201
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
202
  .encode(text="Value:N")
203
- .properties(title="Total completed", width=250, height=200)
204
  )
205
 
206
  return chart
@@ -224,7 +224,7 @@ def kpi_chart_submitted_2() -> alt.Chart:
224
  alt.Chart(data)
225
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
226
  .encode(text="Value:N")
227
- .properties(title="Total completed", width=250, height=200)
228
  )
229
 
230
  return chart
@@ -248,7 +248,7 @@ def kpi_chart_submitted_3() -> alt.Chart:
248
  alt.Chart(data)
249
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
250
  .encode(text="Value:N")
251
- .properties(title="Total completed", width=250, height=200)
252
  )
253
 
254
  return chart
@@ -273,7 +273,7 @@ def kpi_chart_remaining_1() -> alt.Chart:
273
  alt.Chart(data)
274
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
275
  .encode(text="Value:N")
276
- .properties(title="Total remaining", width=250, height=200)
277
  )
278
 
279
  return chart
@@ -297,7 +297,7 @@ def kpi_chart_remaining_2() -> alt.Chart:
297
  alt.Chart(data)
298
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
299
  .encode(text="Value:N")
300
- .properties(title="Total remaining", width=250, height=200)
301
  )
302
 
303
  return chart
@@ -322,7 +322,7 @@ def kpi_chart_remaining_3() -> alt.Chart:
322
  alt.Chart(data)
323
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
324
  .encode(text="Value:N")
325
- .properties(title="Total remaining", width=250, height=200)
326
  )
327
 
328
  return chart
@@ -362,7 +362,7 @@ def kpi_chart_annotators() -> alt.Chart:
362
  alt.Chart(data)
363
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
364
  .encode(text="Value:N")
365
- .properties(title="Number of Contributors", width=250, height=200)
366
  )
367
 
368
  return chart
@@ -382,7 +382,7 @@ def obtain_top_users(user_ids_annotations: Dict[str, int]) -> pd.DataFrame:
382
  user_ids_annotations.items(), columns=["Name", "Submitted Responses"]
383
  )
384
  dataframe["Name"] = dataframe["Name"].apply(render_hub_user_link)
385
- dataframe = dataframe.sort_values(by="Submitted Responses", ascending=False)
386
  return dataframe.head(50)
387
 
388
 
 
200
  alt.Chart(data)
201
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
202
  .encode(text="Value:N")
203
+ .properties(title="Completados", width=250, height=200)
204
  )
205
 
206
  return chart
 
224
  alt.Chart(data)
225
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
226
  .encode(text="Value:N")
227
+ .properties(title="Completados", width=250, height=200)
228
  )
229
 
230
  return chart
 
248
  alt.Chart(data)
249
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
250
  .encode(text="Value:N")
251
+ .properties(title="Completados", width=250, height=200)
252
  )
253
 
254
  return chart
 
273
  alt.Chart(data)
274
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
275
  .encode(text="Value:N")
276
+ .properties(title="Restantes", width=250, height=200)
277
  )
278
 
279
  return chart
 
297
  alt.Chart(data)
298
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
299
  .encode(text="Value:N")
300
+ .properties(title="Restantes", width=250, height=200)
301
  )
302
 
303
  return chart
 
322
  alt.Chart(data)
323
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
324
  .encode(text="Value:N")
325
+ .properties(title="Restantes", width=250, height=200)
326
  )
327
 
328
  return chart
 
362
  alt.Chart(data)
363
  .mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
364
  .encode(text="Value:N")
365
+ .properties(title="Contribuidores Totales", width=250, height=200)
366
  )
367
 
368
  return chart
 
382
  user_ids_annotations.items(), columns=["Name", "Submitted Responses"]
383
  )
384
  dataframe["Name"] = dataframe["Name"].apply(render_hub_user_link)
385
+ dataframe = dataframe.sort_values(by="Respuestas Enviadas", ascending=False)
386
  return dataframe.head(50)
387
 
388