extrema trainer WIP
This commit is contained in:
@ -442,20 +442,12 @@ class DashboardComponentManager:
|
||||
extras.append(html.Small(f"Recent ticks: {len(recent)}", className="text-muted ms-2"))
|
||||
extras_div = html.Div(extras, className="mb-1") if extras else None
|
||||
|
||||
# Insert mini heatmap inside the COB panel (right side)
|
||||
# Heatmap is rendered in dedicated tiles (avoid duplicate component IDs)
|
||||
heatmap_graph = None
|
||||
try:
|
||||
# The dashboard's data provider is accessible through a global reference on the dashboard instance.
|
||||
# We embed a placeholder Graph here; actual figure is provided by the dashboard callback tied to this id.
|
||||
graph_id = 'cob-heatmap-eth' if 'ETH' in symbol else 'cob-heatmap-btc'
|
||||
heatmap_graph = dcc.Graph(id=graph_id, config={'displayModeBar': False}, style={"height": "220px"})
|
||||
except Exception:
|
||||
heatmap_graph = None
|
||||
|
||||
children = [dbc.Col(overview_panel, width=5, className="pe-1")]
|
||||
right_children = []
|
||||
if heatmap_graph:
|
||||
right_children.append(heatmap_graph)
|
||||
# Do not append inline heatmap here to prevent duplicate IDs
|
||||
right_children.append(ladder_panel)
|
||||
if extras_div:
|
||||
right_children.insert(0, extras_div)
|
||||
|
Reference in New Issue
Block a user