sankeymatic
sankeymatic copied to clipboard
Generate the Sankey programmatically
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.