How to create a custom map key

The choropleth maps in Datawrapper provide an option to create a custom map legend, where you can define the range at which a certain color is used. Before we start: This feature, while working if one knows how to use it will be refined to make it easier to use. 

However, with the information from this brief tutorial it will become much easier to understand how to use this feature. 

The feature is located in: Maps > Choropleth > Refine (see screenshot). Per default Datawrapper will automatically create a map key. 

If you de-select the "Automatically generate legend" you will see the option to create your own, and it looks like this. Note that on the left there are options to define a value and on the right you can define the "Caption".

The custom legend is helpful if you want to set specific thresholds for the data to be displayed. 

So: IF your values range between 1.000 and 80.000 (as a example), you can define whatever ranges you need with this custom legend - like in the example above. The key part to choose a "Value", because otherwise Datawrapper will not display anything. Here is the simple rule: If you want to have a value for the range between 1.000 and 4.000, you need to choose a value in the middle of this range, e.g. 2.500.

Here is another example, with values ranging between 1 and 100: The same principle of choosing data ranges to display applies. Essentially, based on your given data range you can define where the legend of the map should use a different color. 

Value Caption (as an example)  
10 1-20   write any text here  
30 21-40 write any here  
50 41-60 write any text here  
70 61-80 write any text here  
90 81-100 write any text here

Summing up: The principle to create a custom legend is to choose certain rangers first, then use the middle value of the specific range as the "Value". What you write as a caption is free to choose.

Still need help? Contact Us Contact Us