Skip to main content
100%

AnimatedOpenSAPLines

✓ Published0🌍 Public
CCBasis
Last edited May 20, 2016
Created on May 14, 2016

This example demonstrates a line chart with animated drawing, using D3.js and SVG. Six time-series datasets are plotted, with each line colored via a categorical scale. The animation is achieved by overlaying a white SVG `rect` that is resized via a transition, acting as a curtain to reveal the lines as if they were being drawn live. A vertical guideline sweeps across the chart in sync with the reveal, and a checkbox toggles the guideline and curtain visibility.

AI-generated description

This experiment makes the lines look like they are being drawn live (animated paths). What's really happening is a #FFF rect is drawn and it's width is manipulated, in the same way a curtain reveals the stage on Broadway. Built with D3.js.

forked from <a href='http://bl.ocks.org/markmarkoh/'>markmarkoh</a>'s block: <a href='http://bl.ocks.org/markmarkoh/8700606'>AnimatedOpenSAPLines</a>

Similar vizzes