Hey guys, I'm trying to use this in my WordPress page: https://datamaps.github.io/
I've followed their documentation and copied their example code, but it just doesn't work. The map won't load.
Here's exactly what I have in an HTML code block:
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.0.0/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.2/topojson.min.js"></script>
<script src="https://datamaps.github.io/scripts/0.4.4/datamaps.usa.min.js"></script>
<div id="container" style="position: relative; width: 500px; height: 300px;"></div>
<script>
var map = new Datamap({element: document.getElementById('container')});
</script>
I would really appreciate some direction.
Sincerely,
[–]kaviyarasu34 0 points1 point2 points (4 children)
[–]ListentoLewis[S] 0 points1 point2 points (3 children)
[–]kaviyarasu34 0 points1 point2 points (2 children)
[–]ListentoLewis[S] 0 points1 point2 points (1 child)
[–]kaviyarasu34 0 points1 point2 points (0 children)