Skip to content

Commit

Permalink
Corrects readme typos and use of catch/error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerobertduncan committed Sep 14, 2023
1 parent c08f625 commit 865772d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion articles/auto-thefts-2022/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Code and markup by Kyle Duncan**

This is a data analysis and visualisation based on auto theft data from the Toronto Police Service. There are three aspects to this visualisation, an elevation-based overview of total thefts by neighbourhood, and a colour-based visual of thefts per square kilometer by neighbourhood at lower zoom levels; and a clustered count of individual thefts locations at higher zoom levels.
This is a data analysis and visualisation based on auto theft data from the Toronto Police Service. There are three aspects to this visualisation: an elevation-based overview of total thefts by neighbourhood, and a colour-based visual of thefts per square kilometer by neighbourhood at lower zoom levels; and a clustered count of individual thefts locations at higher zoom levels.

Popups with more detail appear on click for both neighbourhoods and individual thefts, and the user can view a given year's data using the selector in the legend. Multiple thefts at a single location are collated and ordered in single popup.

Expand Down
4 changes: 2 additions & 2 deletions articles/raptors-distance-traveled/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function getDistances() {
addImages(d.data);
findMatches(d);
})
.catch((e) => console.log("error:", e));
.catch((e) => console.error(e));
}

// add the arena graphic to the map
Expand Down Expand Up @@ -322,4 +322,4 @@ fetch(
d.forEach((l) => destinations.push(l));
getDistances();
})
.catch((e) => console.log("error:", e));
.catch((e) => console.error(e));
2 changes: 1 addition & 1 deletion articles/raptors-distance-traveled/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function getDestinations(features) {
};
destinations.push(pair);
})
.catch((e) => console.log("error:", e));
.catch((e) => console.error(e));
fetches.push(p);
});
Promise.all(fetches).then(() => {
Expand Down

0 comments on commit 865772d

Please sign in to comment.