Maps
A map shades one figure across the areas of one level, such as units by state, incidents by county or revenue by market. A level marked as countries, states or counties is drawn from its own shapes. Any other level, such as your regions, your dealer market areas or a retailer’s markets, is drawn from the ZIP areas or counties inside it. No map service is used and nothing is sent anywhere.
What the data needs
Section titled “What the data needs”The map needs one level marked as a kind of place BInbox has shapes for. In the setup’s Groups step, each level has a Map choice: Countries, States or provinces, Counties, Cities or Postcodes. BInbox suggests the choice from the column’s name and values.
- States or provinces, Counties and Countries draw from their own shapes. A column of states is enough for a map of states. A column of counties draws when each county name is in one state only, or when a state level sits above it. Washington County is in thirty states, for example, so the state above says which one is meant.
- Postcodes draw as ZIP areas, and any level above them is drawn from the ZIP areas inside it. Put the ZIP column as
the lowest level of its group, under store, dealer or whatever sits in it, and group the stores into districts,
regions or markets with a grouping file or columns in the data. Each store’s ZIP then
places it in an area. The data does not need a ZIP on every row, but each store, or whatever the ZIP sits under, must
have one. ZIP codes are read as the five digits, so
2134is02134and90210-1234is90210. - Cities have no shapes, so a city level is only marked, and it draws when a ZIP level sits below it.
- My own regions is for data reported by Region, Market or Territory only, with no ZIP or state in the file. See Draw your own regions.
- My map file draws the level from a TopoJSON file of your own areas, such as DMAs or sales territories. See Use your own map file.
Today states are United States states, and counties are United States counties. A column of Canadian provinces is marked, and listed under the map as having no shape.
Draw your own regions
Section titled “Draw your own regions”When your file names regions that are yours (North, Sales area 4) and has no place column, choose My own regions in the level’s Map choice. A drawing area opens under it.
- Choose what to build from: US states or US counties.
- Pick a region in the list. Drag a box over the map to take every state or county inside it, or tap one to take it. To
take some out, choose Remove (or hold Shift) before dragging, or tap one again. A county list also has Add a
whole state. For states you can paste names or codes, such as
MI, Ohio, IN, and press Enter. - Repeat for each region. Regions with nothing drawn are named under the map, and the map slide lists them as having no shape.
BInbox saves which states or counties make each region with the rest of the report setup, and it does not save the shapes. The map then works like any other: choose Metrics & views, then Map.
Use your own map file
Section titled “Use your own map file”Some areas are not built from anything BInbox ships. DMAs are one example, because they are mostly whole counties but some counties are split between two. If you have a map file of your areas, choose My map file in the level’s Map choice, then Choose a map file….
The file must be TopoJSON, in longitude and latitude (WGS 84). A GeoJSON file, a file already projected, or a file whose shapes do not fit its own lines is refused with the reason. Tools such as mapshaper can save a file as TopoJSON.
BInbox names each shape by the file’s property that matches the most values of the level. If the file has more than one
property, Shapes named by lets you pick another, such as dma_name instead of dma.
A shape matches a value written the same way, ignoring capital letters and extra spaces. Under the shapes, BInbox says
how many values have a shape, names the values that have none, and names the shapes that match no value. Nothing is
matched by a near spelling, so New York and New York, NY do not match. Several shapes with one name are drawn as one
area, such as a market in two pieces.
Areas in the United States are drawn as on the other US maps, with Alaska and Hawaii as insets. Other areas are drawn on a world projection centered on the file. Levels above the file’s level are drawn from its shapes. With DMAs under Region, for example, a map by Region shades each region as the union of its DMAs.
The file is simplified to suit a slide and kept in this client’s setup, with the rest of the report setup. It can be at most 50 MB to read, and at most 1.5 MB once simplified. A file of a few hundred areas is usually well under 1 MB. You hold any license the file needs, and BInbox does not supply DMA or other licensed shapes. To change the file, choose Choose another map file…. Remove the file takes it out.
Add a map
Section titled “Add a map”Choose Metrics & views, then Map, and add it to a slide or a new slide. You can also open a card’s settings and choose Map under Type, which turns a ranking of stores into a map of stores. When the data has no level a map can draw, Map is gray in both places and says what is missing.
The card’s settings have two choices for a map.
- Metric is the figure shaded.
- Shade by is the level whose areas are drawn. A level marked as countries, states or counties is drawn from its own shapes, even when ZIP codes sit below it. Any other level, such as Region, Market, District or City, is drawn from the finest marked level below it, which is the ZIP areas of its stores or its counties. Each area is made of those shapes, filled alike.
The slide’s filters and period apply as they do to any card. The slide’s highlight, if it is one of the areas, has a dark outline with a thin light ring along each side, so it shows on the darkest shade. No other area has an outline. An area under the pointer turns a little lighter, and its name and figure show beside it.
Reading the map
Section titled “Reading the map”Areas are shaded in five steps from light to dark. Each step holds the same number of areas, so the legend names the figures where one step ends and the next begins. An area with no figure is gray and the legend says No data. A step whose figures are too long for the width of the map’s box is written on two or more lines, on screen and in PowerPoint, so the legend stays inside the box. When the legend would leave the map less than a fifth of its box, it is written smaller. When it does not fit even at its smallest size, it says that the box is too small to name the shades, and that darker is higher. No step is ever cut short.
The ZIP areas cover populated land, so an area drawn from them has gaps in sparse country. A gap there is land with no ZIP area, and it does not mean data is missing. A state or county drawn from its own shape has no gaps.
BInbox guesses nothing, so a line under the map says what could not be drawn. It counts only the places at the level the map draws.
- No shape for names up to 3 places with no shape. With more, the line counts them, for example “37 names with no shape”. It says names when the places were matched by name, such as a county by its state and name, and codes when they were matched by code, such as a ZIP code.
- A region drawn from its ZIP areas or counties is drawn as long as one of them has a shape. A ZIP code or county with no shape still counts in its region’s figures, so a region map does not list it. Such a code is a PO box ZIP, a ZIP in a territory (Puerto Rico, Guam and the others have no inset on the map), or a code written wrongly.
- On a map of states or counties, a name with no shape is a county name found in several states with no state above
it, a province, or a name written wrongly. Write such a county with its state (
Suffolk County, MA) or its five-digit code, or keep a state level above it.
Where the shapes come from
Section titled “Where the shapes come from”The shapes are public domain and shipped with BInbox, simplified to keep a deck light.
| Kind of place | Source | Shapes | Size |
|---|---|---|---|
| States | Census Bureau cartographic boundaries, 1:20,000,000 | 50 states and the District of Columbia | 31 KB |
| Counties | Census Bureau cartographic boundaries, 1:20,000,000 | 3,144 counties and their equivalents | 714 KB |
| Countries | Natural Earth, 1:110,000,000 | 174 countries, Antarctica left out | 67 KB |
| ZIP codes | Census Bureau ZIP Code Tabulation Areas, 1:500,000 | 33,642 ZIP areas | 5 MB |
Alaska and Hawaii are drawn as insets on the United States maps. Each file is fetched the first time a map needs it, so the first map of its kind in a session takes a moment longer.
In PowerPoint and the offline file
Section titled “In PowerPoint and the offline file”In PowerPoint the map is a picture, sized to its box at three times the screen’s pixels and never stretched. The title and the legend beside it are ordinary text boxes, so they follow the text size and you can edit them.
The offline file does not carry the shipped shapes yet, so a map from them says “Not available for this data”. A map from your own map file works there too, because the shapes are kept in the setup.