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

cannot handle circular flows #1

Closed
christopherlam opened this issue Jul 17, 2020 · 4 comments
Closed

cannot handle circular flows #1

christopherlam opened this issue Jul 17, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@christopherlam
Copy link

Hi!
I'm a commiter in https://github.com/Gnucash/gnucash/ and keen to import this nice module for cash flow charts. I hope you wouldn't mind? It'd need to wait for chartJS-3 release first.
One issue: it doesn't seem to sanity check for circular flows?

{ from:"A", to:"B", flow:10 },
{ from:"B", to:"C", flow:10 },
{ from:"C", to:"A", flow:10 }
@kurkle kurkle added the bug Something isn't working label Jul 17, 2020
@kurkle
Copy link
Owner

kurkle commented Jul 17, 2020

No, I would not mind :)

Initial support for circular flows added in just released v0.1.4
The result can be improved, but at least it does not loop forever.

image

@christopherlam
Copy link
Author

christopherlam commented Jul 17, 2020

Thanks!

@christopherlam
Copy link
Author

I think this issue #1 may considered fixed. Looks like chartJS 3 is still in heavy flux, and thus cannot be merged into gnucash until it's out of beta. Therefore a sankey cashflow chart cannot be merged in yet. It may need to wait for 5.0 due sometime in 2022. https://wiki.gnucash.org/wiki/Release_Schedule

@christopherlam
Copy link
Author

P.S. WebkitGTK has stopped supporting Windows users. GnuCash uses itfor reports and charts. This means it can use webkit2 on linux, but needs to use webkit1 on mac+windows. Thankfully chartjs runs fairly well on webkit1. I note this project uses some modern javascript, which works well, but we may need to port them to older javascript to be usable in webkit1. So, once chartjs-3 is finalized, and this module is stable, we may need to ask for help occasionally in the future :) Example: Gnucash/gnucash@555a467

//not a native js hacker
//there may be errors in my interpretation as above
@jralls and @gjanssens, lead gnucash devs aren't either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants