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

Some suggestion from a medical researcher #2

Open
sverriss opened this issue Oct 26, 2016 · 5 comments
Open

Some suggestion from a medical researcher #2

sverriss opened this issue Oct 26, 2016 · 5 comments

Comments

@sverriss
Copy link

  • Option to manually choose link order/y-axis position. In the code, not as drag and drop
  • Option to add stroke/border to links as well as nodes
  • Automatic labeling of links with link weight
@timelyportfolio
Copy link
Collaborator

timelyportfolio commented Oct 26, 2016

some reference pieces for sorting/order/y-axis (mostly dealing with d3v3). I am pretty sure @fbreitwieser has already made improvements here that could potentially be resolved by additional examples.

@fbreitwieser
Copy link
Owner

Thanks for the suggestions. For nodes there is the option nodeStrokeWidth, but not yet for links. While it is not what you asked for, in the next release I'll add the option to display node values above them (and rounded corners).

image

@fbreitwieser
Copy link
Owner

Regarding the y positioning - What do you think of? Just the vertical order, and let the layout algorithm decide the actual position, or do you want to provide the fixed positions?

@sverriss
Copy link
Author

The vertical order, preferrably. Per link, or rather, per connection to the node.
The point of wanting to choose the order of the links (and node, which is already possible (?)) is that I am visualising the results from a longitudinal study with three times of measure, and the outcome is dichotom. Hence, there are eight ways the respondents can "flow" through the diagram," 111, 110, 100, 101, 000, 001, 011, 010. This should be reflected in the diagram by allowing the link from year 1 to 2 meet the corresponding link (same group) from year 2 to 3. I will attach a Stanley diagram i made from wikibudgets. It was drag and drop, so you could manually choose insertion and exit point of the links through the nodes.
wikibudget sankey

@sverriss
Copy link
Author

Alternatively, I could make 24 nodes instead of 6, and keep the 16 links. Each two links will then connect to three unique nodes, and as long as I can force the y-position of the nodes, I will achieve the layout I want. If that is the way it is done, I have some other layout suggestions (see attached pic (grey colour is what I want, coloured text are suggestions):

  • Ability to have headings per node level (2007, 2010, 2015), and per start of each series of nodes (A, B, C etc).
  • Ability to group/cluster nodes together (No IBS, 4 nodes vs IBS, four nodes), by choosing zero or low padding within groups, but extra padding between groups.

Longitudinal research is a BIG field, and I think this striking way of visualising the results from longitudinal studies is under communicated in the (medical) scientific community. Maybe it's coming. I think if you would succeed in making a package that is simple yet very customisable, you would have lots of glory ;)
img_0006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants