Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Config to limit x axis #1542

Closed
fdw opened this issue Jan 29, 2023 · 3 comments
Closed

Idea: Config to limit x axis #1542

fdw opened this issue Jan 29, 2023 · 3 comments

Comments

@fdw
Copy link
Contributor

fdw commented Jan 29, 2023

Currently, the x-axis of time charts gets longer with each month. Would it be possible to limit it to some configurable amount?

@marvin-yorke
Copy link

You could probably use dynamic date queries like
year - day - to show graph from the beginning of this year, or
(quarter-3) - quarter to show 1 year window by quarters

Set a desirable time frame, save url as a bookmark in your browser (e.g. http://localhost/beancount/income_statement/?time=year+-+day or as a custom sidebar query
2023-01-01 custom "fava-sidebar-link" "Quarters" "../income_statement?time=%28quarter-3%29-quarter"

@fdw
Copy link
Contributor Author

fdw commented Feb 4, 2023

Thank you :) I know that it's already possible to do it manually for a query or so, but I forgot to mention that or my goal.

I would like to improve the default state/graphs. The graphs have only a fixed space available, and if you show all the history (the current approach), then each bar gets smaller. At least for me, the oldest entries in my history aren't all that relevant anymore and so I'd like to spend the space on a more detailed view of the present, cutting of everything from (for example) 5 years or earlier.
The goal would be to make the graph on the main pages more relevant.

As you said, it's possible to build custom queries for this, or limit it using the time selector, or use bookmarks, but I can imagine that integrating this in the default graphs would be helpful for more people :)

@yagebu
Copy link
Member

yagebu commented May 26, 2023

A limit for the bar charts (at most 100 intervals) was added in #1579

@yagebu yagebu closed this as completed May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants