Tilegram
A tilegram is a map made of hexagons. Each region gets a number of tiles in proportion to one of its values, and the tiles are laid out roughly where the region is. A region with twice the residents covers twice the tiles, however small it is on an ordinary map.
It is the chart to reach for when the size of a region gets in the way of what your data says. On a choropleth of residents, large and empty regions take most of the map, and the cities where most people live are a few small patches. A tilegram turns that around: the cities grow, the empty regions shrink, and every tile stands for the same number of people.
How Geografica Builds One
Section titled “How Geografica Builds One”Geografica lays out the tiles for you, on the server, from your data and the boundaries of the world regions:
- Resize the regions. The regions are stretched and squeezed, keeping neighbours joined, until each one’s area is its share of the total value. A map reshaped this way is a cartogram.
- Lay hexagons over them. A grid of hexagons covers the reshaped map, and each hexagon goes to the region under its centre.
- Balance the tiles. Hexagons on the borders move between neighbouring regions until every region holds exactly its share of the tiles.
Every region with a value gets at least one tile, so a small region never disappears. The chart says what one tile stands for, such as “one tile stands for about 45K”.
The first time a tilegram is shown it can take a few seconds to lay out. After that it is kept, and it is laid out again only when the data changes.
Add a Tilegram to a Canvas
Section titled “Add a Tilegram to a Canvas”A tilegram is a chart of a canvas, drawn next to the map, and it reads one of the canvas layers. The layer must read a table of values by world region, and be coloured by a numeric column, such as population.
- Open the canvas on geografica.app and press Edit.
- In the Visualizations tab, press Tilegram.
- Pick the Layer the tiles read. The tiles are sized and coloured by the column that layer is coloured by, with its palette, so the tilegram and the map match.
- Pick the number of Tiles. A few hundred suits a country divided into a few dozen regions. More tiles follow the values more closely, but each tile is smaller.
- Save the canvas.
The tilegram shows the regions of the deepest level your data holds, so a dataset with a row for the whole country and rows for its provinces shows the provinces. A region with no value, or a value of zero or less, gets no tiles.
Tiles by Density
Section titled “Tiles by Density”A tilegram of a count, such as residents, gives the tiles to the regions with the most people. To give them to the most crowded regions instead, show the count per km²: in the Layers tab, tick Per km² on the layer. The map, its legend and tooltips, and every chart reading the layer then show the value divided by the area of each region, residents per km² for a count of residents.
Per km² is offered for data joined to world regions, which carry their area.
Over Time
Section titled “Over Time”When the data has a time column, the canvas shows a timeline, and the tilegram follows it: each period is laid out on its own, so a region that grows gains tiles. The tiles can move between periods.
Limits
Section titled “Limits”- A tilegram lays out at most 500 regions.
- It reads a table of values by region. A dataset with its own points, lines or shapes has no regions to resize.
- Between 20 and 2000 tiles.
Other Tilegram Tools
Section titled “Other Tilegram Tools”To make a tilegram outside Geografica, or to start from a layout drawn by hand, these free tools are worth a look:
| Tool | What it does |
|---|---|
| Tilegrams | Builds hexagon tilegrams in the browser from a cartogram of your data, lets you adjust the tiles by hand, and exports TopoJSON or SVG. Comes with base maps of the United States and Germany. |
| HexMap Builder | From Open Innovations: reads a CSV, places one hexagon per area, lets you move them around, and saves the layout as HexJSON. It already knows the layouts of UK Parliamentary constituencies, NUTS 3 regions and local authorities. |
| oi.hexmap.js | The Open Innovations library that draws HexJSON hex maps in a web page. |
| go-cart.io | Builds the cartogram itself, the first step of a tilegram, with the regions resized but no hexagons. |
For more free map tools, see Map Tools.