EU contributions 2016

In this example we explain how to create a beautiful map of contributions to the EU budget per country in 2016. For this map we use this data.

The map we are going to create has this url:|fr:16.6|gb:13.5|it:12.5|es:8.6|be:4.5|nl:3.7|pl:3.3|se:2.5|at:2.4|dk:1.8|ie:1.6|fi:1.6|pt:1.4|cz:1.3|gr:1.3|ro:1.2|hu:0.8|sk:0.6|bg:0.3|hr:0.3|si:0.3|lt:0.3|lu:0.3|lv:0.2|ee:0.2|mt:0.1&rmp=4a80f5&bc=4a80f5&fc=ddd

You can easily test every step yourself by copying the url and pasting it in the url bar of another browser tab or window.

europe countries - data

Creating this map

In 3 simple steps we get to our final result:

1. Select a base map

europe countries - all areas

We start with the base map. From the urlmaps list of available maps we select the Europe countries map (map id 44).

2. Select the areas with data

europe countries - data

We add the a-param with the area codes of the EU countries separated by | (pipe) and their contribution per country separated by : (colon).|fr:16.6|gb:13.5|it:12.5|es:8.6|be:4.5|nl:3.7|pl:3.3|se:2.5|at:2.4|dk:1.8|ie:1.6|fi:1.6|pt:1.4|cz:1.3|gr:1.3|ro:1.2|hu:0.8|sk:0.6|bg:0.3|hr:0.3|si:0.3|lt:0.3|lu:0.3|lv:0.2|ee:0.2|mt:0.1

3. Color the areas

world countries - color mexico and honduras

We add colors to the countries by using a color ramp (rmp-param) to auto-generate a color for each country based on its contribution.|fr:16.6|gb:13.5|it:12.5|es:8.6|be:4.5|nl:3.7|pl:3.3|se:2.5|at:2.4|dk:1.8|ie:1.6|fi:1.6|pt:1.4|cz:1.3|gr:1.3|ro:1.2|hu:0.8|sk:0.6|bg:0.3|hr:0.3|si:0.3|lt:0.3|lu:0.3|lv:0.2|ee:0.2|mt:0.1&rmp=4a80f5

4. Finalize the map


We finalize the map by adding a color for the countries that were not selected and the borders.|fr:16.6|gb:13.5|it:12.5|es:8.6|be:4.5|nl:3.7|pl:3.3|se:2.5|at:2.4|dk:1.8|ie:1.6|fi:1.6|pt:1.4|cz:1.3|gr:1.3|ro:1.2|hu:0.8|sk:0.6|bg:0.3|hr:0.3|si:0.3|lt:0.3|lu:0.3|lv:0.2|ee:0.2|mt:0.1&rmp=4a80f5&bc=4a80f5&fc=ddd