Skip to main content
100%

Small Multiples with separate y-scales

✓ Published0🌍 Public
TThanaporn-sk
Last edited Oct 7, 2016
Created on Oct 7, 2016

This small-multiple chart displays the monthly volume of Twitter posts for several distinct topics, such as education and climate change. Each panel shows the trend for its topic on its own independent y-scale, allowing for direct comparison of temporal patterns regardless of differences in overall magnitude. The visualization is built with D3 v3, rendering to SVG. It uses `d3.nest` to group the data and creates a separate `d3.scale.linear` for each panel’s y-axis, while a shared `d3.time.scale` maps the dates across the x-axis.

AI-generated description

A variant of Mike Bostock's small multiples example which, instead of resetting the domain of the y-scale every time it is used, creates a separate y-scale for each multiple.

This a version tailored for a project for UN Global Pulse.

forked from <a href='http://bl.ocks.org/renecnielsen/'>renecnielsen</a>'s block: <a href='http://bl.ocks.org/renecnielsen/9533702'>Small Multiples with separate y-scales</a>

mit Licensed

Similar vizzes