blockcharts alpha

Gallery

48 charts in 9 kinds, all live: point at them or tap them, click the legend where there is one, and on a computer zoom the long series with Ctrl + wheel and drag them. Under each one are the blocks its report is built from and what each weighs in the page. A report carries the core and those blocks, nothing else.

51–112 KB of code in each report below, data aside. Lightest: Gauge and progress ring; heaviest: Executive dashboard
4–24 blocks per report, out of 59; the composer picks them from the JSON
216 KB the core and all 59 blocks together: no page needs them all

libscaletransformmarkguideinteractionrenderer What every block weighs

Comparing categories 7

Which region sells most, which product leads. Bars are read fastest; a dot plot says the same with less ink, a pyramid sets two groups back to back, and a computed column (a margin) is drawn like any other.

Bar chart

Compare categories (with the value written on each bar)

The JSON, the report and the HTML

Grouped bars

Compare categories side by side within each group

The JSON, the report and the HTML

Top N

The top N items (of one year, of each region), ranked

2 charts on the page

The JSON, the report and the HTML

Dot plot

Rank categories without the visual weight of full bars

The JSON, the report and the HTML

One bar set apart

One bar set apart (the best month), and a tile that names it

2 charts on the page

The JSON, the report and the HTML

Population pyramid

Two groups back to back per category (a population pyramid by age and sex)

The JSON, the report and the HTML

Calculated fields

A number computed from the columns (profit from revenue and cost, a margin)

2 charts on the page

The JSON, the report and the HTML

Parts of a whole 6

How a whole splits into its parts, at one moment or over time. Stacked bars and a donut for a few parts; a treemap or a Marimekko for many, or for two levels at once.

Stacked bars

Parts of a whole per category

The JSON, the report and the HTML

Pie and donut

Parts of a whole, as one circle

The JSON, the report and the HTML

Treemap

Shares of a whole across two levels (region, then product)

The JSON, the report and the HTML

Marimekko

Market size and share at once: how big each column is, and who holds it

The JSON, the report and the HTML

Share over time

Shares over time

The JSON, the report and the HTML

Streamgraph

How several parts of a whole rise and fall over time, the shape more than the numbers (streamgraph)

The JSON, the report and the HTML

Change and ranking 4

What changed between two points, who overtook whom over the years, and how a start value became an end value through gains and losses.

Slope chart

How each item changed between two points (before and after, two years)

The JSON, the report and the HTML

Dumbbell and lollipop

A change between two values per category (dumbbell); a value per category, lighter than a bar (lollipop)

2 charts on the page

The JSON, the report and the HTML

Bump chart

How the places of items changed over the years: who overtook whom (bump chart)

The JSON, the report and the HTML

Waterfall

How a start value becomes an end value through gains and losses (profit bridge)

The JSON, the report and the HTML

Distributions 5

How values are spread: where most of them are, how long the tails run, and whether there are two humps that a mean or a box would hide.

Histogram

How values of one variable are spread

The JSON, the report and the HTML

Boxplot

Spread and outliers of raw samples per category

The JSON, the report and the HTML

Violin plot

How values are spread in each category, with the shape a box plot hides (two humps, a tail)

The JSON, the report and the HTML

Ridgeline

How values are spread across many categories or periods (a month each), compared at a glance (ridgeline)

The JSON, the report and the HTML

Beeswarm

Every sample of a few categories as a dot, without overlaps: deals, salaries, response times (beeswarm)

The JSON, the report and the HTML

Relationships and patterns 7

How two measures go together, a third as the size of a bubble, and where the numbers gather in a grid of two categories or in a calendar. Tens of thousands of points go to a canvas, or into hexagons that count them, or into regions that say where most of them fall.

Scatter with groups

Two numeric variables, groups by color

The JSON, the report and the HTML

Product portfolio

Two numeric variables and a third as the size of each bubble

The JSON, the report and the HTML

Large scatter on a canvas

A scatter plot of tens of thousands of points (canvas)

drawn on a canvas

The JSON, the report and the HTML

Hexbin

Where thousands of points of two measures pile up: their density, not every point (hexbin)

The JSON, the report and the HTML

Density contours

Where most of thousands of points fall, as nested regions or contour lines

2 charts on the page

The JSON, the report and the HTML

Heatmap

A number for every pair of two categories; a table of figures, each cell colored by its value

The JSON, the report and the HTML

Calendar heatmap

A number per day over months: weekly patterns

The JSON, the report and the HTML

Targets and progress 2

One figure against its target or its maximum, with the ranges that say at a glance whether it is good.

Bullet chart

Results against their targets, with qualitative ranges

The JSON, the report and the HTML

Gauge and progress ring

One figure against its maximum or target: a gauge, a progress ring

2 charts on the page

50.6 KB of code · core 29.5 + 4 blocks 21.1

The JSON, the report and the HTML

Stages, flows and plans 3

The stages a customer passes, the volume that flows between products, channels and customers, and the tasks of a project on a timeline.

Funnel

Conversion through the stages of a process

The JSON, the report and the HTML

Sankey

Volume flowing between stages (product to channel to customer)

The JSON, the report and the HTML

Gantt chart

A project plan: tasks from start to end on a time axis (Gantt)

The JSON, the report and the HTML

Dashboards and reports 4

Several charts on one page: KPI tiles with sparklines in a grid, the same chart for every region on one scale, a report made straight from CSV rows. The page still carries each block once.

Executive dashboard

A business dashboard: KPI tiles with sparklines, a trend against plan, a donut, a bridge and a funnel in a grid

8 charts on the page

The JSON, the report and the HTML

Team dashboard

Several charts on one page

2 charts on the page

The JSON, the report and the HTML

Small multiples

The same chart for each region, product or country, to compare on one scale

CoffeeTea

North

South

East

West

The JSON, the report and the HTML

Sales report from a CSV

A report from raw CSV rows: monthly totals, ranking, currency

2 charts on the page

The JSON, the report and the HTML