Visualizing MCYS Service Regions and CYMH Service Areas in Ontario

MCYS Service Regions and Service Areas

In 2014 – 2015, the Ministry of Children and Youth Services (MCYS) defined five Service Regions and thirty-three Children and Youth Mental Health (CYMH) Service Areas in Ontario.

We have used free and open source software (FOSS) to convert the Ontario government’s Shapefile archives of the geographic boundaries of these MCYS Service Regions and CYMH Service Areas into TopoJSON files that are convenient for visualizing these geographic bodies and their various characteristics (e.g. population, population density, rate of population growth, etc).


Data-Driven Documents (D3) is a free and open source (Javascript) software library for manipulating documents based on data. D3-GEO is a powerful component of D3 that is designed specifically to visualize geographic data using web standards like HTML, CSS and SVG.

Free and Open Service for Us

We have used D3-GEO to transform our TopoJSON files into (a sample of) area, regional, and provincial views of the MCYS Service Regions and CYMH Service Areas in Ontario:

Area Views
Algoma Algoma CYMH Service Area
Kenora/Rainy River Kenora/Rainy River CYMH Service Area
Regional Views
East CYMH Service Areas in East Region
North CYMH Service Areas in North Region
Toronto Toronto Service Area in Toronto Region
West CYMH Service Areas in West Region
Provincial Views
Service Regions MCYS Service Regions in Ontario
Service Areas
CYMH Service Areas in Ontario

Previous: Geographic Boundaries of MCYS Service Regions and CYMH Service Areas in Ontario

Next: Population Projections for MCYS Service Regions and CYMH Service Areas in Ontario (2016-2041)


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License. Readers are free to access, modify, and re-use the TopoJSON files and Javascript source code that generate these views of the MCYS Service Regions and CYMH Service Areas in Ontario.

Visualizing the Ontario Government’s Open Data

Visualizing the Data Inventory

In previous posts, we compiled and shared a wealth of data and metadata connected with Ontario’s government-wide Data Inventory and Data Catalogue. These materials lay the groundwork for – and hopefully inspire – the study of the early development of an open data initiative undertaken by a sizable, democratic sub-national government.

Our final contribution (for now) to kick-starting  this study is to share a few ways of visualizing the Ontario Government’s Data Inventory.

First, we use D3 to convert any version of the Data Inventory to a force-layout graph, where

  • source nodes represent Ministries;
  • target nodes represent Datasets;
  • edges connecting source nodes and target nodes represent the relationship hasPublished; and
  • a target node’s colour (e.g. lime, yellowgreen, red, white) represents the Access Level of the corresponding Dataset (Open, To Be Opened, Restricted, Under Review).

Figures 1 and 2 represent Ontario’s Government-wide Data Inventory on July 29,2016 (its inception) and September 1, 2017, respectively.

Figure 1. Ontario’s Government-wide Data Inventory, July 29, 2016.


Figure 2. Ontario’s Government-wide Data Inventory, August 3, 2017.

We may also animate the Data Inventory’s evolution over time:

  • ontdi_00
  • ontdi_01
  • ontdi_02
  • ontdi_03
  • ontdi_04
  • ontdi_05
  • ontdi_06
  • ontdi_07
  • ontdi_08
  • ontdi_09
  • ontdi_10
  • ontdi_11
  • ontdi_12
  • ontdi_13


Finally, let’s add some functionality (tooltips and hyperlinks) to our visualization of the Data Inventory, so that users may explore and click on nodes to access the rich content about datasets on the web pages served by the Data Catalogue’s API.

Previous: Ontario’s  Government-wide Data Inventory and Data Catalogue