If you’re using the plugin to create maps for individual countries with data about the new coronavirus (COVID-19), here are some tips on how to do it.
Portugal confirmed cases by municipalities
March 26 2020
Updated on March 26th, 14:00
Municipalities with less than 3 cases are not included
March 25 2020
Updated on March 25th, 21:00
Data only represents ~50% of total confirmed cases.
Getting the data
The data available might not be formatted the way you want. If you’re displaying a small country with a small number of regions, you can add the data manually to each region. In the example above for Portugal, the data is released in a table in PDF format, so it’s not available to be used directly by the plugin. I first needed to convert that data into JSON and then use it as a custom data source for the map. Consider the id property of your JSON entries, should match either the real region ID or the name. The plugin won’t be able to recognize entries that don’t match either.
Creating the Map
Once you know where you’ll get the data from and have selected the map, you can create it. Here are some links that will help:
If you have any question feel free to leave a comment below or contact me.