|
7 | 7 | import pandas as pd
|
8 | 8 | import plotly.graph_objects as go
|
9 | 9 | import plotly.express as px
|
| 10 | +from plotly.subplots import make_subplots |
10 | 11 |
|
11 | 12 | from src.apps.treasury.util.constants import BCT_ERC20_CONTRACT
|
12 | 13 | from src.apps.treasury.data.protocol_metrics import \
|
|
27 | 28 | mode="number",
|
28 | 29 | value=sg.query([last_metric.marketCap]),
|
29 | 30 | number={"prefix": "$", "valueformat": ".2s"},
|
30 |
| - title={"text": "Market Cap"}, |
31 |
| - domain={'y': [0, 0.5], 'x': [0.25, 0.75]} |
32 |
| - ), |
| 31 | + title={ |
| 32 | + "text": |
| 33 | + ("<a title='KLIMA supply multiplied by current price' href=" |
| 34 | + "'https://www.coinbase.com/learn/crypto-basics/what-is-market-cap'>" |
| 35 | + "Market Cap</a>") |
| 36 | + }, |
| 37 | + domain={'y': [0, 0.5], 'x': [0.25, 0.75]}, |
| 38 | + ) |
33 | 39 | )
|
34 | 40 |
|
35 | 41 | metric_fig.add_trace(
|
36 |
| - # Net Asset Value / Total Treasury Value ($) indicator |
| 42 | + # Total Treasury Market Value ($) indicator |
37 | 43 | go.Indicator(
|
38 | 44 | mode="number",
|
39 | 45 | value=sg.query([last_metric.treasuryMarketValue]),
|
40 | 46 | number={"prefix": "$", "valueformat": ".2s"},
|
41 |
| - title={"text": "Net Asset Value"}, |
42 |
| - domain={'y': [0.5, 1], 'x': [0.25, 0.75]} |
| 47 | + title={ |
| 48 | + "text": |
| 49 | + "Treasury <a href='https://en.wikipedia.org/wiki/Market_value'>Market Value</a>" |
| 50 | + }, |
| 51 | + domain={'y': [0.5, 1], 'x': [0.25, 0.75]}, |
43 | 52 | )
|
44 | 53 | )
|
45 | 54 |
|
|
157 | 166 | 'Treasury Holdings': '#ddf641'
|
158 | 167 | },
|
159 | 168 | category_orders={'bucket': order},
|
160 |
| - title="Green Ratio: Target", |
| 169 | + title="<a href='https://forum.klimadao.finance/d/285-rfc-green-ratio'>Green Ratio: Target</a>", |
161 | 170 | )
|
162 | 171 | green_ratio_target_fig.update_layout(
|
163 | 172 | title_x=0.5,
|
|
182 | 191 | dcc.Graph(figure=green_ratio_target_fig)
|
183 | 192 | ], xs=12, sm=6, md=6, lg=4, xl=4)
|
184 | 193 | ]),
|
185 |
| - ], className='center'), |
| 194 | + dbc.Row([ |
| 195 | + dbc.Col([ |
| 196 | + html.H3( |
| 197 | + html.A( |
| 198 | + 'Learn more', |
| 199 | + href='https://dune.com/Cujowolf/Klima-DAO' |
| 200 | + ) |
| 201 | + ) |
| 202 | + ], xs=12, sm=12, md=12, lg=12, xl=12) |
| 203 | + ]) |
| 204 | + ], className='center') |
186 | 205 | ], id='page_content_hud', fluid=True)
|
0 commit comments