Skip to main content
100%

D3 Show Reel

✓ Published0🌍 Public
NNpfn
Last edited Nov 27, 2017
Created on Nov 27, 2017

The D3 Show Reel cycles through ten chart types—lines, horizons, areas, stacked areas, streamgraph, overlapping areas, grouped bars, stacked bars, bars, and donut—using seamless transitions. It renders real monthly stock closing prices for Microsoft, Amazon, and IBM over ten years as animated SVG paths and shapes. The code uses d3.svg.line, d3.svg.area, d3.nest, d3.time.scale, and d3.timer to coordinate the morphing sequences, with color scales and clip paths for the horizon chart.

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