-
Notifications
You must be signed in to change notification settings - Fork 72
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 diagram for need flow #162
Comments
@danwos If this fits sphinx-needs and we can sketch the idea together, we can think about a contribution. |
I like the idea of supporting Sankey diagrams and d3 and its extensions are great libraries. Therefore I made a rough search on the internet for "Sankey diagrams the Python way": PlotlyFor Plotly there is already a (quite new) sphinx integration: The content part of the Also this would mean, that Sphinx-Needs is capable to support any plotly-feature in future. But I haven't tested anything right now. So if this sphinx-plotly extensions supports PDF output must still be checked. Holoviews / BokehBokeh itself comes with a sphinx-extension and multiple directives: Holoviews, which would provide the functions for a Sankey diagram, has nothing like this, but it claims that they are independent from the plotting implementation, so I guess the bokeh integration will work: But this I haven't used as well, so testing here is also needed. matplotlibmatplotlib is already used for the pie chart diagrams in Sphinx-Needs. However, the examples on their sankey-page does not match fully the ones from your example links. So this should be the easiest implementation, with no new dependencies. But I have technical concerns only and I'm not familiar with the needed functions and presentation forms of a Sankey diagram. |
Thanks for compiling this list. From the above, |
I guess this issue can be handled as part of #392 |
With the plotly directive https://pypi.org/project/sphinx-plotly-directive/ and matplotlib directive https://matplotlib.org/3.1.1/devel/plot_directive.html it is already wonderful possible to define customizable graps. Maybe we should provide a better documentation how to use these directive together with sphinx-needs. |
@PhilipPartsch How would you access need objects from those directives? The story is about having a better traceability diagram for sphinx-needs using some of these tools internally. Now after several months of creating this issue I feel such reports should be part of an external tool like Grafana and not sphinx-needs. There is Sankey support in Grafana already https://grafana.com/grafana/plugins/netsage-sankey-panel/?plcmt=footer Will be handled as part of useblocks/sphinx-needs-enterprise#8 @danwos I guess we can close this issue. |
A Sankey Diagram is a visualization technique that allows to display flows. This will fit perfectly to show the traceability of needs and an alternate visualization to the current need-flow.
https://github.com/d3/d3-sankey would be a good option to implement this (provided a three-clause BSD license is acceptable for sphninx-needs).
The text was updated successfully, but these errors were encountered: