This JavaScript exception Assignment to undeclared variable occurs in strict-mode If the value has been assigned to an undeclared variable. Message: ReferenceError: assignment to undeclared variable "x" (Firefox) ReferenceError: "x" is not defined (Chrome) ReferenceError: Variable undefined in strict mode (Edge)

4890

INFO: Registered to: marcus WARNING: js() - calling Javascript "updatePanorama(get(xml.scene));" failed: ReferenceError: updatePanorama is not defined.

This d3.select("body").append("svg") is making the graph area an immediate child of the HTML body. You can add other HTML (or Visualforce) elements to the page and make your graph a child of whichever gives you the right layout. If you are using any script file and getting "Uncaught ReferenceError:" which means 'x' is either a variable or a method which you are trying to use before declaring it using var keyword. This means that there is a non-existent variable referenced somewhere. As described in this question. If a