Skip to main content
100%

Marimekko Chart

✓ Published0🌍 Public
Mmbostock
Last edited Feb 26, 2019
Created on Jun 2, 2011

This Marimekko chart visualizes product sales across US markets, using a mosaic layout where each column represents a market segment with width proportional to total sales and stacked rectangles showing market-specific values. The visualization employs D3's linear scales for x and y axes, with color encoding via the category10 palette. Data is loaded from a JSON file and processed through D3's nest and reduce functions to calculate segment offsets and proportional dimensions, while SVG rects are rendered with crisp edges for precise boundaries.

AI-generated description

A Marimekko Chart, inspired by Freakalytics. Thanks to Noah Iliinsky for the suggestion. Jason Davies has published an even-simpler interactive implementation using the “slice-dice” treemap layout algorithm!

gpl-3.0 Licensed

Similar vizzes