nowthis / sankeymatic

Make Beautiful Flow Diagrams
http://sankeymatic.com/build/
ISC License
841 stars 122 forks source link

Generate the Sankey programmatically #37

Open Nemecsek opened 6 years ago

Nemecsek commented 6 years ago

As I am a less-than-newbie in JS (I work with Python+Flask), it is difficult for me to understand how to use SankeyMatic to generate graphs programmatically (not manually) or even if it provides such a feature.

The ideal would be to read a JSON file with the whole configuration and generate the sankey. Is this possible?

At the moment I stripped down http://sankeymatic.com/build/ hiding all the setting fields: i.e. I am setting canvas_width with <input id="canvas_width" type="hidden" value="600"> With Flask it is easy to fill out the HTML template with the proper parameters, but I am searching for a cleaner way to do it.