I have a graph that wouldn’t show up in a div with #skills:
var myChart = d3.select("#skills").append("svg");
http://www.portfolio.alexbelinsky.com/skills-graph.html
My script file is right here: [http://www.portfolio.alexbelinsky.com/js/skills2.js]
Anyone can see a problem?
skills2.js is called before the div exists.
Either load the script after the div tag, or wrap the whole javascript shebang in a document.ready.
1 Like
That’s what it is! Thanks so much for pointing it out.
Lesson learned.
system
Closed
4
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.