FEATURE - diagram only version
Additional to the index.html, I think it would be great to have a template like diagram_only.html as an example on how to show only the diagram without any options to the user so that the data, on what the diagram is based, can be hard coded by the developer.
Do you want the data to be hidden or the same url, but full screen mode? Currently all the controls are there. You can toggle between full screen mode and settings.
Like this (my local version which is mobile responsive (works on a phone)):
This looks great.
My goal was to show the diagram only to the user by providing the data in the source code without showing anything else than the diagram to the user. Just integrating the diagram in a website for example within a blog post with the latest data and the possibility to use the hover effects.
Unfortunately I was not able to integrate the code like this, so I was hoping for an example in your repo :)
I think your local example is exactly what I was looking for and I would be happy if this was added to the repo.
So none of the controls? Just the diagram. Looking into that.
Note that the data would still be in the URL, there is not really a way around that unless the data is stored in a database and fetched in the background which is something that could be done.
Yes, non of the controls.
I was hoping for something like in google charts.
Basically you can define your data in a variable data and you create a chart like
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
and then call chart.draw(data); and it will create the diagram in the chart_div
But that might be completely different than the workflow right now.
My goal is just to show the diagram alone (including the nice hover effects) at some place, i can control, on a website.
Maybe data in the URL is not my favourite way. I would rather have a hidden textarea with that data I think.
But whatever is possible from your point of view. If it's somehow possible to include the diagram just to show data nicely to the user, I would be happy :)
This only works on my server. Select Export and then Get Link. From the dialog select Copy (hidden settings). That changes the route which I set on the server to hide the controls.
https://youarehereinfo.com/sankeybuilder
Still tweaking things. Click a band or node for values in a growl message, works great on mobile. Bands now have arrows (I use to have this in my Sankey version). It will work on mobile with auto resize. All the controls scroll into view horizontally for a tight UI. Added font style of Italic under Labels section. Completely new User Interface. Added a Full Screen button while you work (desktop highly recommended initially, but works great on mobile).
I developed SankeyBuilder way back in 2012 and thought it would be nice to update this version. I will suggest some pull requests for this one soon.