Skip to content

Limit depth of treemap account hierarchy #1062

Open
@asciipip

Description

It would be nice to limit the maximum depth of the accounts shown in the treemap view. At the moment, it just shows all leaf accounts.

More concretely, consider this treemap:

example treemap

The lefthand side has four boxes all named "VIRSX", representing the four accounts:

  • Assets:Retirement:Broker-1:Employer-1:PreTax:VIRSX
  • Assets:Retirement:Broker-1:Employer-1:Match:VIRSX
  • Assets:Retirement:Broker-1:Employer-2:PreTax:VIRSX
  • Assets:Retirement:Broker-1:Employer-2:Match:VIRSX

The treemap would me more useful to me if the maximum-depth squares were aggregated at either the employer or broker depth (and aggregation at my asset classification depth, "Retirement", would be useful, too).

I'm not entirely sure how the UI would work best for this. A simplistic approach would be to have a drop-down menu simply choosing a maximum aggregation depth. (The default would be "0" for "infinite".) That only works if every part of the account hierarchy has roughly the same things at each level. A possible alternative would be to have some metadata attached to particular accounts saying, basically, "fava, aggregate at this account." That, of course, would make it more difficult to change the aggregation level dynamically. (In my example, I'd have to choose between always aggregating at either the broker or employer level.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions