Political maps and data for Canadian electors!

Here’s something that should give every political nerd hours of material to pore over. The Stephen Taylor Data Project is releasing some political maps, graphs, and census data for your consumption during this latest Canadian general election.

This efforts is the culmination of months of spare-time effort to package historical election results in an easy-to-digest format for Canadians during this 44th general election. You can browse every general election from 2019 back through the year 2000 (7 elections) and look at historical trends on each, with every riding map broken down by polling division.

Canada’s 43rd Parliament as elected in the 2019 General Election

Furthermore, you can create maps of each riding based on the relative strength of the party in each poll of each riding

If you’ve ever wanted to understand Liberal voting patterns, appreciate Conservative strongholds on a granular level, be facinated by the NDP’s local strategy, or track the Green Party’s and Bloc’s ebbs and flows, now you can! We’ve even got Alliance and PC results from the days of yore to bookend a re-emerging trend of some vote-splitting on the right that began again in 2019.

The riding of Burnaby South by polling division, after the 2015 general election

In 2000, Joe Clark led the PC Party prior to their merger with the Alliance. This map shows where he was strong (green) and weak (red) in Calgary Centre.

I’ve also combined data from the last census – perfectly segmented by riding – to give insights on what motivates voters. For example, income and affordability are top-of-mind issues for a lot of Canadians during this election. This project helps you consider these factors in each riding and compare these trends both nationally and provincially.

The population distributions of Desnethé–Missinippi–Churchill River (left) and Nanaimo–Ladysmith (right)
The differences between rental vs ownership in the riding of Spadina–Fort York (left) versus the province of Ontario as a whole (right)

I’ve also put up historical polling data that you can browse and I have a visualization demonstrating the rise, fall, and sustained dominance of Canada’s various political parties, as elected by voters to Canada’s federal Parliament.

A streamgraph visualization of Canada’s history of elections.

You can take a snapshot of each map by clicking the camera icon 📷 at the top of each geographic visualization. The images I’ve shared in this post were created this way. Go ahead and take snapshots of your favourite ridings (and favourite elections!) and share these images on social media. If you’re writing for a news outlet and you find any of this useful, please link to this post and to the Stephen Taylor Data Project! If you’re an avid twitter user, please tweet about this project.

So, please take a look and I hope that you enjoy! This work is being made available to general public and to every partisan of every party. I believe very strongly in a more representative democracy and believe that when more data becomes available and accessible that describes the shape of the Canadian vote, the more responsive our candidates can be in meeting that representation.

The riding of Nanaimo–Ladysmith in British Columbia, 2015 results

The project was coded using ReactJS, using both NoSQL (MongoDB) and relational (MySQL) databases to serve data through a common GraphQL layer facilitated by Apollo client on a Node.js server. Four gigabytes of GeoJSON files were constructed locally using some more of that server-side javascript magic. Those files are served via AWS S3, and are visualized for the end-user using the Leaflet library. Infographics SVGs are assembled using D3JS.

By-election notes

– big loss for Stephane Dion tonight. In by-elections, the number of votes for the government usually goes down. In seat +/-, we see Stephane Dion -1 and Stephen Harper +1.

– Liberals will say that three out of four by-elections is a victory. All four ridings were Liberal, so anything less than holding those four with margins as strong as before is a loss for the Liberals.

– Stephane Dion’s hand-picked candidate lost in Desnethé–Missinippi–Churchill River. This is, of course, the riding in which Dion put an end to David Orchard’s hopes of being a candidate there and cherry-picked an NDP MLA to run as a Liberal. Political observers will remember Dion’s hand picked candidate Jocelyn Coulon in Outremont losing to the NDP in a big by-election upset months ago.

– In contrast, the Conservatives’ weak finish in Toronto Centre is a result of a poor history of electoral success for this incarnation of the Conservative party there and the party’s decision to drop their candidate in the riding. Dion’s move in Saskatchewan was to enhance electoral success, Harper’s Toronto Centre decision was in made in order to prevent divergent messaging that could have an impact outside of this riding in which Conservatives weren’t even competitive.

– Vancouver Quadra is also turning out to be a bitter win for Dion. Liberal vote share in that riding is down and Conservative vote share is up. While Harper is finding it difficult to increase share in downtown Toronto, the Vancouver result is encouraging. It appears that Conservatives are and will be competitive in that riding for the next general election.
UPDATE: Final margin in Vancouver Quadra is 151 votes with the Liberals just barely holding this seat from going Conservative. This is a big upset for Dion. UBC is within the riding and the riding is urban and generally quite well-to-do. This seat should have been solidly Liberal. Quadra just became a target riding for the Conservatives in the next election.

– By-elections are always experimental in that we sometimes see a preview of party strategy for general elections. In the Liberals, we see more of an emphasis on the team rather than their leader. In Conservatives we see primary focus on Harper’s leadership. A general election is leadership focused, however, as debates and daily news coverage have a bias towards leadership. Many voters, in all 308 ridings, cast a ballot for Harper or Dion, rather than the their local candidate or party. Paul Martin de-emphasized the Liberal brand and put his leadership in the front window during both 2004 and 2006 general elections. Dion would be wise to downplay his leadership and emphasize the Liberal brand. Martin hid the brand because it was tainted by the Sponsorship Scandal, and the man dubbed Mr. Dithers believed he provided strong leadership. Is the Liberal brand still sufficiently tainted by scandal? Despite this consideration, Dion’s leadership could not be emphasized over the Liberal brand; whereas we saw “Team Martin” sign instead of “Liberal” signs, we won’t be seeing “Team Dion”.

– Jack Layton also had a bad night. His vote share is down. While he works with the Conservatives to carve up Liberal votes left and right, he may find that he needs more time to accomplish this goal. A general election would hasten the dispatching of Dion, and bring forward a more competitive Liberal leader in most scenarios. Therefore, Layton and Harper should figure out how to loudly oppose each other while sustaining the life of this government for the longer rather than shorter term.

– Dion is going to find his front bench increasingly crowded with alpha candidates for his job. Liberals will be start looking seriously past Dion and it will be difficult for him to catch up.

– Conservative and NDP strategy should be to establish themselves as principled ideologues on the left and the right. Conservatives should emphasize good management and strong leadership. Jack Layton should challenge Harper to a one-on-one debate. Both parties should try to keep the government alive to draw out Liberal divisions.

– Luckily for Harper and Layton, Dion’s strategy is also to survive and the only way this can happen is for the government to survive. Liberals will be chomping a the bit in order to “get back to power as soon as possible” and most realize that this is impossible under Dion and much easier when they hold a leadership race and select a more capable leader. The easiest way for the Liberals to remove Dion is via a loss in the general election. The Conservatives and the NDP would be smart not to provide them with this opportunity. If the hunger gets too strong, the Liberals may start eating their own and we may see Dion swallowed whole. This would immediately trigger a general election as the Conservatives and NDP would be willing partners in increasing their respective vote proportions as Liberal voters stay home on election day.