About
Svg line in D3
Example
data=[
{x: 20, y: "20"}
, {x: 3, y: "3"}
];
scaleX = x => x;
scaleY = y => y;
let d = d3.line() // Constructs a new line generator with the default settings.
.x(d => scaleX(d.x))
.y(d => scaleY(d.y))
(data);
console.log(d)