Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Theme River Graph

Public visualization

Fork of Theme River Graph

0 stars0🌍 Public
Eeyxxr1260@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Theme River Graph

This interactive stream graph visualizes the median property prices in Massachusetts over time, allowing users to toggle between coloring by property type (house or unit) and by number of bedrooms (1–5). The D3.js v4 code uses `d3.stack`, `d3.stackOffsetSilhouette`, and `d3.area` to render the layered areas from a CSV file of quarterly sales data. Users switch coloring modes via buttons, which re-organize the data with `d3.nest` and recalculate medians before redrawing the SVG. Hovering over the graph reveals details through a tooltip element.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed