Spaces:
Runtime error
Runtime error
gauravlochab
commited on
Commit
·
42631e0
1
Parent(s):
19f65fc
refactor: add autoscale
Browse files
app.py
CHANGED
@@ -216,6 +216,7 @@ def create_visualizations():
|
|
216 |
),
|
217 |
bargap=0.1,
|
218 |
height=700,
|
|
|
219 |
)
|
220 |
fig_tvl.update_xaxes(tickformat="%b %d")
|
221 |
|
@@ -265,6 +266,7 @@ def create_visualizations():
|
|
265 |
bargap=0.2, # Add space between bars for better visibility
|
266 |
bargroupgap=0.4,
|
267 |
height=700,
|
|
|
268 |
)
|
269 |
fig_swaps_chain.update_xaxes(tickformat="%m-%d")
|
270 |
|
@@ -301,6 +303,7 @@ def create_visualizations():
|
|
301 |
bargap=0.2, # Add space between bars for better visibility
|
302 |
bargroupgap=0.4,
|
303 |
height=700,
|
|
|
304 |
)
|
305 |
fig_bridges_chain.update_xaxes(tickformat="%m-%d")
|
306 |
|
@@ -348,7 +351,8 @@ def create_visualizations():
|
|
348 |
tickangle=-45
|
349 |
),
|
350 |
height=700,
|
351 |
-
bargap=0.1
|
|
|
352 |
)
|
353 |
|
354 |
# Calculate weekly average daily active agents
|
@@ -376,6 +380,7 @@ def create_visualizations():
|
|
376 |
),
|
377 |
bargap=0.8,
|
378 |
height=700,
|
|
|
379 |
)
|
380 |
|
381 |
return fig_swaps_chain, fig_bridges_chain, fig_agents_registered, fig_agents_with_transactions_daily,fig_tvl
|
|
|
216 |
),
|
217 |
bargap=0.1,
|
218 |
height=700,
|
219 |
+
autosize=True
|
220 |
)
|
221 |
fig_tvl.update_xaxes(tickformat="%b %d")
|
222 |
|
|
|
266 |
bargap=0.2, # Add space between bars for better visibility
|
267 |
bargroupgap=0.4,
|
268 |
height=700,
|
269 |
+
autosize=True
|
270 |
)
|
271 |
fig_swaps_chain.update_xaxes(tickformat="%m-%d")
|
272 |
|
|
|
303 |
bargap=0.2, # Add space between bars for better visibility
|
304 |
bargroupgap=0.4,
|
305 |
height=700,
|
306 |
+
autosize=True
|
307 |
)
|
308 |
fig_bridges_chain.update_xaxes(tickformat="%m-%d")
|
309 |
|
|
|
351 |
tickangle=-45
|
352 |
),
|
353 |
height=700,
|
354 |
+
bargap=0.1,
|
355 |
+
autosize=True # Adjust bargap for clearer side-by-side bars
|
356 |
)
|
357 |
|
358 |
# Calculate weekly average daily active agents
|
|
|
380 |
),
|
381 |
bargap=0.8,
|
382 |
height=700,
|
383 |
+
autosize=True
|
384 |
)
|
385 |
|
386 |
return fig_swaps_chain, fig_bridges_chain, fig_agents_registered, fig_agents_with_transactions_daily,fig_tvl
|