![]() |
VOOZH | about |
D3.js is a library in Javascript, this library is mostly used for making of graph and visualizing data on the HTML SVG elements. D3 stands for Data Driven Documents and mostly used for data visualization. The Path.rect() is used to make a rectangle in a svg element.
Syntax:
Path.rect(x, y, w, h);
Parameters: This function accepts four parameter as mentioned above and described below:
Example 1:
Output:
👁 ImageExample 2: