![]() |
VOOZH | about |
The d3.json() function is used to fetch the JSON file. If this function got an init parameter, then this is called along with the fetch operation.
Syntax:
d3.json(input[, init]);
Parameters: This function accepts two parameters as mentioned above and described below.
Note: Please create a JSON file named "sample.json" before writing the given example.
Example:
Output:
👁 Image