I am trying to load the d3js script using
$.getScript('http://d3js.org/d3.v2.js', function(data, textStatus) { console.log(textStatus); return true });
which is correctly returning the "success" status.
I have already set
$.ajaxSetup({
cache: true,
async: false
});
so that the file is completely loaded before trying to use it.
But I am getting "TypeError: names.map(...).join is not a function" in my console window.
Has anyone encountered this situation? Is there something special that I need to do to get the file to load correctly?
I also tried
var se = document.createElement('script');
se.type = "text/javascript";
se.src = "http://d3js.org/d3.v2.js";
document.getElementsByTagName('head')[0].appendChild(se);
with the same results.
I have no problem with
<script src="http://d3js.org/d3.v2.js"></script>
but in this application, it is not an option.