Harshad_919
Posts: 27
Joined: Fri Jun 19, 2020 6:53 am

Not able to plot proper sankey diagram

Hi

I am traying to plot sankey diagram with a large amount of data. Please refer to the below example.
https://jsfiddle.net/8a0hkgy6/

Is there any data limit for sankey diagram or what is wrong with this data?
I want to plot a sankey chart for given data.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Not able to plot proper sankey diagram

Hi Harshad_919,

Thanks for contacting us with your question.

There is no limit for data number in sankey. The only things that limits you are performance issues and too little space, and the second thing is your case. You added too many points and there is simple not enough space to display them all. I have reduced your data significanlty and increased chart height. Take a look at the results: https://jsfiddle.net/BlackLabel/fy69q2gc/

I think you should reconsider your data structure, because it would be really hard to show that many points. Perhaps you could split your data by regions or some other criteria and show multiple charts instead of big one? You could also try to increase chart height even further and use some sort of scroll on your container.

Let me know if you have any further questions!
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”