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

sankey cash-flow chart #759

Open
wants to merge 5 commits into
base: stable
Choose a base branch
from

Conversation

christopherlam
Copy link
Contributor

@christopherlam christopherlam commented Jul 17, 2020

  1. upgrade chartjs to 3.0.0beta, fix html-chart to handle chartjs breaking changes
  2. add chartjs-chart-sankey.js
  3. add sankey.scm

with permission from @kurkle: kurkle/chartjs-chart-sankey#1

image

@christopherlam christopherlam force-pushed the maint-ChartJS branch 3 times, most recently from e99b37b to 5e287cc Compare July 17, 2020 15:03
@jralls
Copy link
Member

jralls commented Jul 17, 2020

No beta dependencies, and this is a new feature so it goes to master.

@christopherlam
Copy link
Contributor Author

@gjanssens is there any merit to the idea of including both chartjs-2 and chartjs-3 in the distribution? Problem: sankey requires chartjs-3, and I'm not 100% sure that chartjs-3 won't leave webkit on Windows behind. So, to upgrade chartjs to 3 may cause windows charts to suffer. If we include both 2 and 3, then we can use advanced chartjs features only when necessary.

@jralls
Copy link
Member

jralls commented Nov 18, 2021

And have a feature that doesn't work for most of our users. -1.

@gjanssens
Copy link
Member

I agree this is not a good option.

@christopherlam
Copy link
Contributor Author

And have a feature that doesn't work for most of our users. -1.

I presume you mean most users use Win32 and may be limited.

I've never been able to generate win32 builds therefore have never been able to test whether chartjs3-on-webkit1 is broken. Hence the idea: keep chartjs2 (which will eventually become stale) for most charts, and add chartjs3 for sankey. Sankey will be initially hidden via --extras and if I'm confident that chartjs3-on-win32works well then we could transition the plumbing to use chartjs3 throughout.

@gjanssens
Copy link
Member

And have a feature that doesn't work for most of our users. -1.

I presume you mean most users use Win32 and may be limited.

I've never been able to generate win32 builds therefore have never been able to test whether chartjs3-on-webkit1 is broken.

As far as I can see chart.js is just a bunch of javascript files and its consumers are written in guile. That means you should be able to test without rebuilding. I t hink you can install a nightly of gnucash on a win32 system, replace chartjs files with v3 and then make the necessary tweaks in the report code to work with chartjs3. You'll probably have to make those changes with elevated privileges though.

@christopherlam christopherlam changed the base branch from master to maint May 15, 2022 14:54
@christopherlam christopherlam changed the base branch from maint to master January 22, 2023 15:25
@jralls jralls changed the base branch from master to stable March 27, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants