D3.js namespace() Function
The d3.namespace() function is used to return an object that contains space and local attributes that describe the full namespace URL and the local name. If there is a colon in the name than the string on the left side of the colon is a namespace prefix.
Parameters: This function contains only one parameter that is given above and described below.
- name: This is a string that contains a prefix that must be registered in d3.namespaces.
Return Value: This function returns an object.