Skip to main content
100%

D3 Show Reel

✓ Published0🌍 Public
JJoymangulJensen
Last edited Nov 28, 2017
Created on Nov 28, 2017

This D3 show reel demonstrates a sequence of animated transitions between seven chart types—lines, horizons, areas, stacked areas, streamgraphs, overlapping areas, grouped bars, stacked bars, bars, and donuts—using ten years of monthly stock closing prices for AAPL, AMZN, IBM, and MSFT. The visualization cycles through each type with a 1.5-second transition, using SVG paths and smooth interpolation to morph between line charts, area charts, bar charts, and donut charts. Data is real but deliberately unadorned with axes or meaningful aggregation, prioritizing fluid motion over information content. The example highlights D3’s flexibility in building custom, dynamic transitions with minimal code.

AI-generated description

The first 15 seconds of the D3 show reel. See full video at http://vimeo.com/29862153. Includes seamless transitions between the following visualization types:

  • lines
  • horizons
  • areas
  • stacked areas
  • streamgraph
  • overlapping areas
  • grouped bars
  • stacked bars
  • bars
  • donut

Admittedly, these aren’t the most useful visualizations; their purpose is not to inform but to demonstrate D3’s capability for producing dynamic visualizations with custom transitions. They do show real data (the monthly closing price for ten years’ worth of stock data), but I didn’t include axes for date or price. See the axis component for a better example. Also, the stacked visualizations aren’t especially meaningful, unless you imagine owning a portfolio with equal parts AAPL, AMZN, IBM and MSFT. Similarly, the bars and donuts represent the average price (or sum) during this time period.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1256572'>D3 Show Reel</a>

gpl-3.0 Licensed

Similar vizzes