ylliX - Online Advertising Network
How to build GenAI mock server?

Upgrading d3-sankey chart to latest version shows issue with layout method


need help to understand how to resolve issue with d3-sankey chart.
I am upgrading sankey chart from 0.4.2 version to latest version, which gives error with layout method which is deprecated in latest version.

Kindly help.

Code is used as :
sankey
.nodes(graph.nodes)
.links(graph.links)
.layout(32);
after removing layout methods error is as below
attr.js:30 Error: attribute transform: Expected number, “translate(undefined,undefi…”.
(anonymous) @ attr.js:30

Tried using sankey() method instead of layout but did not work.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *