Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

582
Views
Sorting Sankey chart's source & destination nodes alphabetically

I am creating Sankey chart using Highcharts where I want to sort my source and destination labels alphabetically. In this image you can see labels are randomly assigned as per data values. I want to sort those labels for both source and destination. So in second column I want to see nodes in below order,

England -> France -> Portugal -> Spain

How can sort all nodes to get such result ?

Thank you! enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is no special option for sorting by name in a sankey type diagram, the data visualization is based on the flow composition algorithm.

You can easily post-sort by rearranging the data in the correct order according to the keys.to.

data: [
  ['Canada', 'England', 1],
  ['Canada', 'France', 5],
  ['Canada', 'Portugal', 1],
  ['Brazil', 'Portugal', 5],
  ['Brazil', 'France', 1],
  ['Brazil', 'Spain', 1],
  ['Brazil', 'England', 1],
],

https://jsfiddle.net/BlackLabel/f5L3ajy8/2/

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!