I am attempting to create a map similar to the one created by Mike Bostock.
You can access my JSON file (here), which represents Europe divided into NUTS 2 regions. The structure of the JSON file is as follows:
{
"type": "Topology",
"objects":
{
"nuts2":
{
"type": "GeometryCollection",
"bbox": [-63.15345500000001, -21.387309500000015, 55.83662850000002, 71.18531800099998],
"geometries": [
{
"type": "Polygon",
"properties":
{
"nuts_id": "AT11",
"name": "Burgenland (AT)",
"population": 286691
},
"id": "AT11",
"arcs": [
[0, 1, 2, 3, 4]
]
},
...
...
To display the European map colored with the Italian vaccination coverage data from the CSV file using radio buttons for antigen selection.
Upon testing two solutions in creating the map, I encountered issues. The first solution didn't display anything while the second had trouble locating the path for the CSV file.
Here are snippets of code from my attempts:// First Solution (map.js)
// Code runs but doesn't display the map
// Second Solution (map.js)
var width = 700;
var height = 600;
...
...
If anyone can assist me in resolving these issues, I would greatly appreciate it.