Marimekko Chart
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 descriptionA 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!