ChrisWilson010101 commited on
Commit
7d0f2fa
·
1 Parent(s): 7895e0a
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -57,6 +57,9 @@ hotkey_daily_df_['Hotkey'] = hotkey_daily_df['Hotkey_Date'].str.decode('utf-8').
57
  hotkey_daily_df_['Date'] = hotkey_daily_df['Hotkey_Date'].str.decode('utf-8').str.split(' ').str[1]
58
  hotkey_daily_df_['Value'] = hotkey_daily_df['Value'].astype(int)
59
 
 
 
 
60
  print(hotkey_daily_df_)
61
 
62
 
@@ -107,7 +110,7 @@ with demo:
107
  title="Daliy scraped data amount",
108
  # color="Date",
109
  tooltip=["Date", "Value"],
110
- y_lim=[0, 1000],
111
  x_title="Date",
112
  y_title="Amount of data scraped",
113
  height=500,
@@ -125,7 +128,7 @@ with demo:
125
  title="Scraped data amount of each Miner",
126
  # color="Date",
127
  tooltip=["Hotkey", "Value"],
128
- y_lim=[0, 4000],
129
  x_title="Date",
130
  y_title="Amount of data scraped",
131
  height=500,
 
57
  hotkey_daily_df_['Date'] = hotkey_daily_df['Hotkey_Date'].str.decode('utf-8').str.split(' ').str[1]
58
  hotkey_daily_df_['Value'] = hotkey_daily_df['Value'].astype(int)
59
 
60
+ dalily_df_max = daily_df['Value'].max()
61
+ hotkey_df_max = hotkey_df['Value'].max()
62
+
63
  print(hotkey_daily_df_)
64
 
65
 
 
110
  title="Daliy scraped data amount",
111
  # color="Date",
112
  tooltip=["Date", "Value"],
113
+ y_lim=[0, dalily_df_max * 1.5],
114
  x_title="Date",
115
  y_title="Amount of data scraped",
116
  height=500,
 
128
  title="Scraped data amount of each Miner",
129
  # color="Date",
130
  tooltip=["Hotkey", "Value"],
131
+ y_lim=[0, hotkey_df_max * 1.5],
132
  x_title="Date",
133
  y_title="Amount of data scraped",
134
  height=500,