I am using the following code to try to draw a path using d3.js I have tried various code examples on the web about the same and have been getting the same error everywhere.
Make sure your code has modified in the below syntax since there is no d3.svg in version 4.
var lineFunction = d3.line() .x(function(d) { return d.x; }) .y(function(d) { return d.y; });