change the radius of the circle: proportional to runtime instead of # of batches
Browse files- app.py +2 -2
- dashboard_utils/bubbles.py +1 -1
app.py
CHANGED
@@ -75,8 +75,8 @@ with chart_c2:
|
|
75 |
with placeholder_chart_c2_1:
|
76 |
st_lottie(lottie_loading, height=100, key="loading_c2_1")
|
77 |
|
78 |
-
st.write("Chart showing participants of the collaborative-training. Circle radius is relative to the total
|
79 |
-
"
|
80 |
"active device.")
|
81 |
|
82 |
st.caption("Leaderboard")
|
|
|
75 |
with placeholder_chart_c2_1:
|
76 |
st_lottie(lottie_loading, height=100, key="loading_c2_1")
|
77 |
|
78 |
+
st.write("Chart showing participants of the collaborative-training. Circle radius is relative to the total time contributed, "
|
79 |
+
"the profile picture is circled in purple if the participant is active. Every purple square represents an "
|
80 |
"active device.")
|
81 |
|
82 |
st.caption("Leaderboard")
|
dashboard_utils/bubbles.py
CHANGED
@@ -137,7 +137,7 @@ def get_serialized_data(serialized_data_points, latest_timestamp):
|
|
137 |
new_item = {
|
138 |
"date": latest_timestamp.isoformat(),
|
139 |
"profileId": run_name,
|
140 |
-
"batches": batches
|
141 |
"runtime": runtime,
|
142 |
"activeRuns": activeRuns,
|
143 |
}
|
|
|
137 |
new_item = {
|
138 |
"date": latest_timestamp.isoformat(),
|
139 |
"profileId": run_name,
|
140 |
+
"batches": runtime, # "batches": batches quick and dirty fix
|
141 |
"runtime": runtime,
|
142 |
"activeRuns": activeRuns,
|
143 |
}
|