Issue with X-axis date alignment in EOY Returns vs Benchmark chart

Open
#586 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
jupyter, python

Research direction

Start by tracing how qs.reports.full builds the EOY Returns vs Benchmark chart and how it assigns dates to the x-axis labels. Reproduce the chart with backtest data covering 2024–2026 in a Jupyter notebook, then check that 2024 appears and the 2025 and 2026 labels align with their dates.

Written by the indexing model from the issue text.

Description

I noticed a minor issue regarding the X-axis date alignment in the EOY Returns vs Benchmark chart when executing qs.reports.full in a Jupyter notebook.

Specifically, while my backtest data covers the period from 2024 to 2026, the year 2024 does not appear on the timeline, and the labels for 2025 and 2026 seem to be pointing to incorrect positions. I have attached an image illustrating this misalignment for your reference.

Thank you for your time and for maintaining this helpful tool. I would appreciate it if you could look into this when you have a moment.

Image
Dominant language
Python
Stars
7.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ranaroussi/quantstats

All issues in ranaroussi/quantstats

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.