Skip to main content
Public

Share visualization

Loading preview…

A7 - Small Multiples in D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

A7 - Small Multiples in D3

0
RRiya Mathur
Last edited Apr 10, 2024
Created on Mar 24, 2024

This example uses small multiples to display the frequency of Atlantic storms from 1995 to 2016, with each chart representing a different storm name. The visualization shows a line chart for each storm, mapping year on the x-axis and frequency on the y-axis, with all charts sharing identical scales for easy comparison. Built with D3 v6, it uses `d3.csv`, `d3.group`, `d3.line`, `d3.scaleTime`, `d3.scaleLinear`, and `d3.scaleOrdinal` to parse data, group by storm name, and render SVG paths, axes, and a legend. The color scale uses `d3.schemeCategory10`, and the data comes from an external CSV file linked in the code.

AI-generated description

Small Multiples depicting the frequency of each storm from 1995 to 2016.

Comments

Sign in to join the discussion.

MIT Licensed