gauravlochab commited on
Commit
99383ec
·
1 Parent(s): e2243e5

feat: Update bar color for transaction visualizations in the dashboard

Browse files
Files changed (1) hide show
  1. app_trans_new.py +6 -1
app_trans_new.py CHANGED
@@ -235,7 +235,12 @@ def create_transcation_visualizations():
235
  fig_tx_chain = px.bar(
236
  daily_counts,
237
  barmode="stack",
238
- title="Chain Daily Activity: Transactions"
 
 
 
 
 
239
  )
240
  fig_tx_chain.update_layout(
241
  xaxis_title="Date",
 
235
  fig_tx_chain = px.bar(
236
  daily_counts,
237
  barmode="stack",
238
+ title="Chain Daily Activity: Transactions",
239
+ color_discrete_map={
240
+ "optimism": "red",
241
+ "ethereum": "darkgreen",
242
+ "base": "blue"
243
+ }
244
  )
245
  fig_tx_chain.update_layout(
246
  xaxis_title="Date",