Report charts: re-basing-on-zoom widget (same as Equity tab); layout fixes
- per-fund report charts now use chart_widget.equity_chart_html (st.iframe) instead of static st.plotly_chart: every visible window re-bases each line to 1.0 at its left edge, so fund/reference/index compare in any zoom level - same semantics as the Equity curves tab - removed 'expand all' checkbox (24 expanded sections drowned the page) - added 'rest of Fund Lab continues below' marker after the report section; the other Fund Lab sections (alpha search, clusters, N-PORT, drawdown, tax, CEF) were never deleted and are unchanged
This commit is contained in:
@@ -1136,3 +1136,16 @@ chart, period table, drivers, reference mix, tax, peers) + an "expand
|
||||
all" checkbox. Static build so the page stays fast; regenerate with
|
||||
`python -m fundlab.reportdata` (~8 s) and `python -m fundlab.report`
|
||||
(~11 s for the HTML).
|
||||
|
||||
**Report charts: re-basing-on-zoom widget (2nd pass).** The first report
|
||||
build used static st.plotly_chart with pre-rebased series — zooming to a
|
||||
window left the lines starting at different levels (no comparison
|
||||
possible). Replaced with the SAME widget as the Equity curves tab
|
||||
(`chart_widget.equity_chart_html` + st.iframe): on every relayout each
|
||||
visible line is re-based to 1.0 at its left edge and y fits the visible
|
||||
data, so fund/reference/index are comparable in any window. report_data
|
||||
still stores the full-history series; the app divides by each series'
|
||||
first point before handing it to the widget (per-series 1.0 start, as
|
||||
the widget expects). Also removed the "expand all" checkbox (24 expanded
|
||||
sections made the page unusable and hid the sections below) and added a
|
||||
"rest of the Fund Lab continues below" marker.
|
||||
|
||||
Reference in New Issue
Block a user