Interactive Plotly charts for return streams: quick column charts, equity curves, drawdowns, full performance reports, and calendar heatmaps. These code cells are executed live by Quarto every time the docs are built.
Sample data
We reuse qrt’s bundled sample datasets — AAPL as the “strategy” and SPY as the benchmark — loaded offline via q.data.datasets.load, no network dependency:
q.plot.col renders any Series/DataFrame column selection as an interactive line chart, with shell-style wildcard support (e.g. "*_ret") for selecting multiple columns at once:
The underwater chart — cumulative drawdown from the running peak:
fig = q.plot.drawdown(strategy)fig.show()
Full performance report: q.plot.plot
Combines the equity curve, drawdown, and headline stats (CAGR, Volatility, Sharpe, Max Drawdown) into one linked-axis figure. An optional benchmark overlays a second equity curve:
fig = q.plot.plot(strategy, benchmark=benchmark, title="AAPL vs. SPY")fig.show()
Calendar returns: q.plot.monthly_heatmap
Year-by-month compounded returns as an interactive heatmap, pairing with q.stats.monthly_returns: