Maps
Geographical maps show data by country or region on Morningstar's stylized map, using shading or color to show performance, value, or category at a glance. The map is stylized, not geographically accurate. For the map artwork, construction, sizing, and color rules, see Maps in Brand Foundations.
- Country represents a single country or territory. Its fill shows the data value or category.
- Region groups countries, by default Americas, Greater Europe, and Greater Asia. Custom groupings come from a grouping column in the data.
- Legend identifies the scale or categories. Numeric maps use a pill legend that labels only the scale extremes. Categorical maps use the standard Chart Lab legend.
- Hover Flag displays the country's name and one or more associated values on hover.

Numeric Scale Shades each country by a numeric value using a single palette or tint stack, such as market performance or valuation. Scales can be diverging, with a zero midpoint, or non-diverging. A pill legend labels the scale.

Categorical Scale Colors each country by the values of a categorical series, such as region membership or coverage. Uses the standard Chart Lab legend, placed at the right or top.
Usage
Use when:
- Location is central to the message, such as performance or valuation by market.
- Showing one measure across many countries, where a bar chart would be too long.
- Showing which countries belong to a group, such as Eurozone, Group of 7, or BRICs
Avoid when:
- Precise value comparisons or ranking are required. Use a horizontal bar chart since length is easier to read than color.
- Readers need the exact value for each country. Value labels aren't supported on the map, so use a table.
- Tracking change over time. Use a line chart.
- Geographic accuracy matters, such as distances or borders. The standard Morningstar map is stylized. (When using the code component, a geographically-accurate SVG can be used in place of the standard Morningstar map. See Code section for details.)
Best Practices
- Use one palette or tint stack for the whole numeric map, chosen from the existing Chart Lab color palettes. Don't create custom gradients.
- Show market performance using the standard Performance palette. Use other colors for metrics like relative value, as described in Foundations Maps.
- Assign one distinct color per category on categorical maps.
Put exact values in the hover flag or a companion table, since value labels aren't shown on the map.
Keep stroke outlines the same color as the background, and avoid drop shadows or decorative effects.
Usage
Packages
Technical documentation and usage examples are available in Storybook.
Package | Storybook |
|---|---|
@mc/geo-map |
