Skip to content

Commit

Permalink
all fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dprof-in-tech committed Oct 1, 2024
1 parent 5120703 commit 1f95257
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/main_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,7 @@ def get_main_chart_figure(
color_map_liquidity = {"debt_token_supply": "#1f77b4"} # blue
figure = plotly.graph_objs.Figure()

custom_columns = [
"liquidable_debt",
"liquidable_debt_zkLend",
"liquidable_debt_at_interval_Nostra Alpha",
"liquidable_debt_at_interval_Nostra Mainnet"
]
customdata = []
for col in custom_columns:
if col in data.columns:
customdata.append(data[col].values)
else:
customdata.append([0] * len(data)) # Use 0 if the column is missing

# Transpose customdata to match rows to records
customdata = list(zip(*customdata))
customdata = src.helpers.get_custom_data(data)

# Add bars for each protocol and the total liquidable debt
for col in color_map_protocol.keys():
Expand Down

0 comments on commit 1f95257

Please sign in to comment.