A nice accounting visualisation

Sometimes I look the new packages entering debian and I discovered beancount which is a CLI double entry accounting system based on flat files.

But the thing that grabbed my eye is their visualisation client they did with flask and the way it displays the accounting: https://beancount.github.io/fava/

In our search for some eye-candy I thought it might be an idea worth mentioning.

D3 already supports treemaps: https://www.d3-graph-gallery.com/treemap
In python according to my (very) brief researches only plotly does: https://plotly.com/python/treemaps/

It seems to only generate an svg so it could not be integrated in GTK.
But maybe the desktop client could open a web page (like for the HTML editor).

Don’t GTK supports svg with librsvg?

Not as interactive element. It is just converted into pixmaps and we already get issue that it did not supported all the options.

Another option would be to implement this kind of graph ourselves like we did for other graphs.

Why do you think this accouting visualization adds some value? Which information is shown on this view that is not including as part of some more generic accounting dashboard?

The relative importance of accounts is better displayed this way.

They are showing the expenses in the example above and you can immediately see the huge green square that is the Rent. Of course you don’t have a precise number out of the graph (ie is the rent > to the taxes of one year ?) but I don’t think it’s the goal of such a visualisation.

Moreover the tree nature of the data is correctly shown while flat bar charts or pies do not make justice to this fact (or you have numerous occurences of those but it will become difficult to read and keep in mind).

1 Like

Of course, but IMHO before diging on each account we need to distinguish the evolution of the amounts in each type of account.

So following your example I think we need first to show how much expenses we had. If the rent is a recurring amount having a huge green square it is not relevant because he know that his have to pay this amount each period. This make me think that this graph may be usefull to dig into the detail of an account type.

Just to clarify: probably it is a nice feature to have this kind of graph views for accounting but I’m not sure if it’s worth the effort to create a new graph type without having basic accounting graph (using current graph types) that can be used as starting point for most of the users.

1 Like

Of course, that’s why it’s in the “Idea” category, it’s just the kind of visualization that we should keep in the back of our head for when we want to add some eye-candy to Tryton.

The example is based on the income statement. So it is per period or fiscal year which makes sense.
Of course such graph would have no value on the general ledger.