Skip to content

Instantly share code, notes, and snippets.

@fryford
fryford / README.md
Last active January 11, 2016 20:54
Relationships among teams 2
@fryford
fryford / README.md
Last active January 11, 2016 20:44
UK postcode search
@fryford
fryford / README.md
Last active August 29, 2015 14:22
Animating a single line & multiple lines

Animating a line

Whilst I wouldn't want to animate every line, it can be useful on certain occasions to illustrate growth / decline, direction or geographical movement. In this situation we're using population projections that can go in all sorts of different directions depending on the underlying assumptions made. The animatelines function below shows how to animate a line by modifying the stroke-dash & stroke-dashoffset properties of a line.

@fryford
fryford / index.html
Last active August 29, 2015 14:07
Enter, update, exit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Enter, Update, Exit</title>
<style>
.axis path