Skip to content
InsightCharts

Search

Search guides and components

Scale poster

A tall poster that is one illustrated scale: a full-height `scale-ladder` with icons, leader-labelled items and named zones, and a narrow side column of large figures and one small graphic, each set level with the part of the scale it describes.

Use when
Use it when the positions of 6 to about 16 named things on one scale are the whole subject: depths, altitudes, temperatures, distances, ages. Give the scale's rows and zones in scale, up to five figures with the scale position each belongs to, and optionally a side graphic of two to four magnitudes. Beside the scale the figures line up with their positions; under 760px they move below it.
Avoid when
Comparing sizes rather than positions (use ranking poster or count poster); change over time (use timeline poster); more than about 16 items, because the labels run together; several unrelated graphics (use poster and lay the panels out yourself).

Preview

The preview scrolls inside its frame. A poster has the same colours in the site's light and dark modes. The toolbar has the poster themes and a PNG download. Expand it to see it in place, or open it full screen.

Full screen

Composition

Built from

The scale poster template is assembled from 1 molecule and 2 poster primitives. Any slot also takes any other component.

Molecules

1

The sheet an infographic is composed on. It paints a full-bleed ground from a poster theme, forces one theme and colour mode on everything inside, and lays out a masthead, a grid of panels and a footer. It can save the whole sheet as one PNG.

Poster primitives

2

A tall vertical band graded along one scale (linear or log, running up or down) with each item placed at its true position and labelled with an icon, its name and its value on alternating sides.

Shows a few related magnitudes as plain circles sized by area, each with its number set large and a short label.

Installation

$ pnpm dlx shadcn@latest add @insightcharts/scale-poster

The CLI copies the source into your project and needs the @insightcharts registry in components.json; see installation. With the package, import it by name:

import { ScalePoster } from "insightcharts";

Examples

Forest, a climb read upwards, linked

Noir, a log scale, with download

Props

PropTypeDefaultDescription
scalerequiredScaleLadderConfig | SlotThe scale. A compact scale-ladder config: { data, name, value, iconField?, icon?, direction?, scale?, min?, max?, ticks?, zones?, scaleLabel?, format?, highlight? }. Or a full spec, which replaces the ladder.
figures{ at: number; value: string; label: string; context?: string; icon?: string }[]Large figures for the side column. at is the position on the scale the figure belongs to; beside the scale the figure is set level with it under a dotted rule.
sideStatCirclesConfig | SlotOne small graphic in the side column. A compact stat-circles config: { data, name, value, unit?, format?, title?, subtitle? }. Or a full spec.
sideAtnumberPosition on the scale where the side graphic starts. Default: under the last figure.
heightnumberHeight of the scale in px. Default: 68px per item, at least 920 (760 when stacked).
titlerequiredstringThe poster's one fact, as a plain sentence with its number.
kickerstringSmall label above the title: the topic.
subtitlestringOne line under the title: the measure, population and period.
themePosterThemeName | string | ThemeInput"ocean"Poster theme: noir, magenta, dusk, ocean, forest, blueprint, sunrise, paper, any other theme name, or a theme object.
mode"light" | "dark" | "auto" | "system""light"Colour mode of the poster and everything in it. A poster paints its own ground and does not follow the page unless you set auto. Only paper has a different dark variant.
downloadbooleanfalseShow a "Download PNG" control under the poster that saves the whole poster as one image.
maxWidthnumber | string980Widest the poster is drawn. It is centred in wider containers.
linkedbooleanfalseMake the marks clickable. Clicking a mark in one graphic highlights the same name in every other graphic that has it, and filters the graphics that read the shared data. Click it again, or the empty ground of that graphic, to clear.
dataDataInputRows shared by every region whose config leaves out its own data. With linked, a click filters those regions.
sourcesstring | string[]Where the data comes from, shown in the footer.
notestringCaveat shown in the footer, e.g. "Illustrative data".
creditstringWho made the poster, shown at the right of the footer.
level1 | 2 | 3 | 4 | 52Heading level of the title. Panel headings are one level down.