# map-hierarchy-charts

> Claude/Codex skill by [@betterstackhq](https://omgskills.com/library/betterstackhq/index.md) · 4 stars · Updated 2026-10-23

Query shapes and settings for Better Stack map\_chart (geographic map) and hierarchy\_chart (host map hexagons). MUST load before creating either chart type — on dashboards or in Explore.

## Install

```sh
git clone https://github.com/BetterStackHQ/claude-plugin /tmp/claude-plugin && ln -s /tmp/claude-plugin/skills/map-hierarchy-charts ~/.claude/skills/map-hierarchy-charts
```

## From README

Map & Hierarchy Charts Both are not time-series: the query returns one row per location/entity — no time column, no GROUP BY time, no series. AS value is fine for both — neither renders a legend, so the value alias is never displayed. Load the query skill for the data type first (metrics-query / logs-query). Map Charts (mapchart) Plot a numeric value at geographic points on a world map. Select exactly two things — a numeric value and a location — and group by the location. Metrics: Raw events (logs / web events, e.g. in Explore): location(...) resolves a string to coordinates: an IP ('1.1.1.1'), airport code ('JFK'), city ('San Francisco, CA'), or country ('US', 'UK') — typically a metric label (location(label('colo'))) or a raw event field. Explicit coordinates work too: tuple(lat, lng, 'customlabel'). The location expression must be aliased AS location and the value AS value (or set locationcolumn / valuecolumns to match your aliases).

## Links

- HTML page: https://omgskills.com/skills/betterstackhq/claude-plugin/skills/map-hierarchy-charts/
- GitHub: https://github.com/BetterStackHQ/claude-plugin
- Author: [@betterstackhq](https://omgskills.com/library/betterstackhq/index.md)

## More from this repo

- [chart-alerts](https://omgskills.com/skills/betterstackhq/claude-plugin/skills/chart-alerts/index.md) — Guide for creating and managing Better Stack chart alerts.
   - [@betterstackhq](https://omgskills.com/library/betterstackhq/index.md) · 4 stars
- [chart-generation](https://omgskills.com/skills/betterstackhq/claude-plugin/skills/chart-generation/index.md) — Complete reference for chart types, units, and settings on Better Stack dashboards.
   - [@betterstackhq](https://omgskills.com/library/betterstackhq/index.md) · 4 stars
- [chart-styling](https://omgskills.com/skills/betterstackhq/claude-plugin/skills/chart-styling/index.md) — Better Stack chart styling and advanced settings reference - series colors and order, number chart coloring thresholds,...
   - [@betterstackhq](https://omgskills.com/library/betterstackhq/index.md) · 4 stars
