Omniscope Custom Views › francechoropleth

France Choropleth

Every French department coloured by a figure from your data, overseas departments and Paris included, with a click to filter the report to one department.

Map

Open the demo in Omniscope Download demo.ioz Sample data: orders.csv Source on GitHub

Every French department coloured by a figure from your data, overseas departments and Paris included, with a click to filter the report to one department.

Live: invented sales of 2,000 orders, summed by department. Hover a department for its value; click it to select its orders.

The problem it solves

Figures broken down by department are common in France, and a table of 101 rows hides the pattern: is the north stronger than the south, does one department stand out from its neighbours? A choropleth map shows that at once, but it needs department outlines, a projection that looks right, and the overseas departments somewhere visible.

The France Choropleth view has all of that built in. Point it at a field holding department names or codes, choose a measure, and each department is coloured by its value. In the illustrative orders above (invented figures), the departments of the large cities lead; below, the same orders are matched by INSEE code and coloured by the mean satisfaction score:

Live: the same orders matched by INSEE department code, coloured by the mean satisfaction score.

Where it earns its place

Omniscope's Choropleth view, and the Map view with a GeoJSON or shapefile you supply and join to the data, can also colour areas. This view is the quicker route when the areas are French departments: the outlines are included, overseas departments and the Paris area sit in their own boxes so they can be seen and clicked, and loose spellings and codes match without a join.

The examples below are illustrative.

Team Department field Colour
Sales Customer's department Sum of sales, number of customers
Customer service Department of the request Mean satisfaction, number of complaints
Logistics Delivery department Mean delivery time
Public sector Department Coverage rate, incidents per 1,000 residents

How to use it in Omniscope

  1. Bring the data into a workflow with a field holding department names or codes, and connect it to a Report block.
  2. Add a view and choose France Choropleth.
  3. Set Department field, for example Department, and Colour, for example the sum of Sales.
  4. Check the note under the map: it lists any values that did not match a department.
  5. Click a department to filter the other views to it; click again or click empty space to clear.
Selecting Gironde: its orders are selected in the report and the other departments fade
Selecting Gironde: its orders are selected in the report and the other departments fade

Why do this in Omniscope

Data and options

A field of department names or codes, and a measure.

Option What it does
Department field Department names or INSEE codes; loose spellings match
Colour The measure that colours each department
Pane X, Pane Y Optional: one map per value

Tested

Mock harness: the sum of sales per department checked against the source data (101 departments, total 157,894.98), matching by name and by INSEE code, older spellings and codes without the leading zero ("Seine St Denis", "Corse du Sud", "Cote d'Or", "1") and a value that matches nothing, hover and the tooltip, selecting a department (in the map and in the Paris box), clicking again and clicking empty space to clear, filtering to one region (four departments, the rest grey), a field that matches no department, a 180 by 140 pane, 30,300 records, empty data and unconfigured options.

Reference

Fields it reads

NameTypeWhat it does
ColourMEASUREThe value that colours each department, for example the sum of Sales. Lighter is lower, darker is higher
Pane XGROUPINGOptional: one map per value, side by side
Pane YGROUPINGOptional: one map per value, one above the other
Department fieldGROUPINGA field holding French department names (Ain, Côte-d'Or) or INSEE codes (01, 2A, 974); each value colours one department