Sarkosos commited on
Commit
fbee021
·
1 Parent(s): 070b84d

fixed dashboard metagraph

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,10 +131,10 @@ entity_choice = m2.radio('Select entity', utils.ENTITY_CHOICES, index=0, horizon
131
 
132
  df_m = fetch_metagraph_data()
133
  df_miners = fetch_leaderboard_data(df_m, ntop=ntop, entity_choice=entity_choice)
134
-
135
  # hide colorbar and don't show y axis
136
  st.plotly_chart(
137
- px.bar(df_miners.iloc[:ntop], x='I', color='I', hover_name=entity_choice, text=entity_choice if ntop < 20 else None,
138
  labels={'I':'Incentive', 'trust':'Trust', 'stake':'Stake', '_index':'Rank'},
139
  ).update_layout(coloraxis_showscale=False, yaxis_visible=False),
140
  use_container_width=True,
 
131
 
132
  df_m = fetch_metagraph_data()
133
  df_miners = fetch_leaderboard_data(df_m, ntop=ntop, entity_choice=entity_choice)
134
+ print(df_miners)
135
  # hide colorbar and don't show y axis
136
  st.plotly_chart(
137
+ px.bar(df_miners.iloc[-ntop:], x='I', color='I', hover_name=entity_choice, text=entity_choice if ntop < 20 else None,
138
  labels={'I':'Incentive', 'trust':'Trust', 'stake':'Stake', '_index':'Rank'},
139
  ).update_layout(coloraxis_showscale=False, yaxis_visible=False),
140
  use_container_width=True,