D3 example from Observable on my wordpress site
问题 Thank you very much for the help in advance. I am trying to add this Sankey Diagram on my wordpress site. https://observablehq.com/@d3/sankey-diagram I am having a hard time. I downloaded the JS code, pasted it on my wordpress site, but it gives me a lot of errors Uncaught SyntaxError: Unexpected token 'export' Is the first error from the browser. This is the code I downloaded below: <script src="https://d3js.org/d3.v5.js"></script> <script> // https://observablehq.com/@d3/sankey-diagram@273