Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Libraries
# Libraries
node_modules/

# Parcel projects
Expand All @@ -8,3 +8,5 @@ node_modules/
dist/

.DS_Store

.vscode/

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ svg:active {

.label {
color: #0050A1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ <h1>D3 Map of World Population</h1>
<!-- Script with D3 code -->
<script type="text/javascript" src="./index.js"></script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ Promise.all([getJSONData, getCSVData]).then(function(values) {
.tickFormat(i => format(color.domain()[i - 1])))
.select(".domain")
.remove();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
svg {
background-color: #ADD8E6;
cursor: grab;
}

svg:active {
cursor: grabbing;
}

.countries {
stroke: #fff;
}

.tooltip {
position: absolute;
padding: 10px;
color: #fff;
background-color: #b8b8b8;
opacity: 0;
border-radius: 5px;
}

.label {
color: #0050A1;
}
Loading