D3.svg.line Is Not A Function. Arpit Solanki Arpit Solanki. The zoomscaleBy Function in D3js is used to scale the current zoom transform of the selected elements by k.
In above code we supply the generator with an array containing 5 data points. A path generator such as that returned by d3svgline is both an object and a function. Step 1 Create a container to hold the SVG image as given below.
You can try the same trick for other undefined function.
Each of these functions can take in a constant value or a function as a parameter. Step 1 Create a container to hold the SVG image as given below. This parameter is a scale factor specified. After this create a line generator function using d3line function.