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 order can't be specified #4986

Closed
jarben opened this Issue Jan 20, 2017 · 8 comments

Comments

Projects
None yet
6 participants
@jarben
Contributor

jarben commented Jan 20, 2017

Version: 3.4.0

I'm struggling to find out how to manage order of nodes in the sankey diagram. For example, this diagram:

image

is defined (source attached sankey-order.zip) in this order:

nodes:

  1. Financial Services

  2. Energy & Utilities

  3. Mobility Transportation

  4. Germany

  5. Italy

  6. Netherlands

links:

  1. Financial Services -> Germany
  2. Financial Services -> Italy
  3. Financial Services - Netherlands
    ...

where the order on the diagram is:

  1. Mobility Transportation

  2. Financial Services

  3. Energy & Utilities

  4. Germany

  5. Netherlands

  6. Italy

Which doesn't reflect the source code. Is there any way to do this - provide some sort of order index or simply order by given order?

Thanks for any suggestion!

@jarben

This comment has been minimized.

Contributor

jarben commented Jan 20, 2017

It seems like the order is based on values, I've changed all values to "1" and now it shows as:
image

Is there any way to change ordering, say by order in the source file or provided sortFn?

@pissang pissang added the enhancement label Jan 21, 2017

@jarben

This comment has been minimized.

Contributor

jarben commented May 24, 2017

Any update on this?

@iandvt

This comment has been minimized.

iandvt commented Jul 12, 2017

+1 - Another option could be allowing layoutIterations to be set to 0. Allowing the user to sort the nodes

@JamieChung

This comment has been minimized.

JamieChung commented Aug 10, 2017

+1 Would love more control on how to change the ordering of the nodes.

@shyamsdmx

This comment has been minimized.

shyamsdmx commented Feb 27, 2018

+1 Any update on the issue ?

@deqingli deqingli self-assigned this Mar 7, 2018

@deqingli

This comment has been minimized.

Member

deqingli commented Apr 12, 2018

Hi everyone,I will follow this issue, sorry for letting you wait so long!

@deqingli deqingli self-assigned this Apr 12, 2018

@deqingli

This comment has been minimized.

Member

deqingli commented Apr 18, 2018

Hi everyone, I have fixed this problem, which will be released next version. Now nodes sort by the order in series.data and will not be changed even your resize the diagram. Thanks for your suggestions!

@deqingli deqingli closed this Apr 18, 2018

@deqingli

This comment has been minimized.

Member

deqingli commented Apr 18, 2018

If there any problem after you try the new version, please reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment