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
Transaction report charts #5685
Comments
@n-stein not sure about your next developments, but I think this may be really useful, actually GRM is too difficult and I had request from multiple friends for specific charts which actually are obtainable only through GRM but would be solved by the above new feature. |
feat(#5685): add charts to Transaction Report
Not done any testing on it yet but one observation is that maybe the graph should be at the head of the report like all other standard reports. |
Yes, I've thought about it but it needs a rewrite of the code because actually group totals are calculated during the loop when generating HTML table. |
Nice work @gabriele-v ! @whalley Adding this javascript to the HTML may be a quick way to handle this, as it simply moves the chart to the top of the page:
|
Nice trick @rmelillo76, I've sent a PR with the change |
@gabriele-v Rather than
It would probably be better to report something like:
Could also consider adding a hyperlink to the transaction as we do in the transtion report detail itself. |
Yes, hyperlink make sense but only if it's a trasaction, so group by not enabled, otherwise the key is not TRANSID but grouping item. Regarding the parenthesis I've tried with that but I was in doubt because if you have for example a category like "Incomes (Salary)" you have two parenthesis and that's pretty ugly, I don't think anyone will name a category/account/payee with >>, but I'm open to any suggestions. |
Oh, never tried it with 'Group By', I see what you mean. Leave as-is. |
Hi @gabriele-v I started to look at this and at first glance I thought Min and Max were being reversed in the example report below, but then I realized it's because the amounts are all withdrawals so the totals are both negative . But as a user, I would look at that I spent 164 on Fuel and 20 on Emissions, so 164 should be the max and 20 the min. Should we use absolute value to calculate instead - what do you think? Also, the amounts are only showing whole dollars, not the cents in both the chart and the stats. I think we should show the full amount, just like the built-in reports with charts do. |
Hello @rmelillo76, Regarding decimals you are right, it seems a bug and I'll fix it. |
Think that could lead to confusion. The current behaviour seems clear to me. |
I agree now after giving it more thought. Thank you both. |
@rmelillo76 I've sent a PR to fix decimal values, you should be able to test it soon. |
FYI looks like pie graph considers only the absolute value, so if I have a 20 and -20, the pie will be 50%-50%. |
Yes, not sure what else you can do in this situation. A Pie chart is probably not the best display option, but that is up to the user to select. |
There's an old C-style cast on this line that is causing the Flatpak build to fail. It should be a static_cast. https://github.com/moneymanagerex/moneymanagerex/blob/master/src%2Freports%2Ftransactions.cpp#L189 |
Thank you @whalley |
Description of the feature
GRM reports are really good for power users, but I think that may be useful to have an option to add a charts to Transaction Report for "normal" users or even for power users like me if I don't need something heavily customized.
I'd imagine it like a 4 options:
If "grouping" is enabled, it should consider the grouping item total, otherwise it should consider the single transaction.
Two other options of grouping should be added: group by month (it will be month+year obviously) and group by year
Use cases
The text was updated successfully, but these errors were encountered: