Data is from CDC's wonder dataset
This is code illustrates how to create a "comet chart" in R. See this research paper for more information about comet charts: http://research.google.com/pubs/pub42901.html
license: gpl-3.0 |
license: gpl-3.0 | |
height: 960 |
license: gpl-3.0 | |
height: 960 |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<svg width="960" height="2000" font-family="sans-serif" font-size="10"></svg> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/d3-legend/1.1.0/d3-legend.js"></script> | |
<script> | |
var svg = d3.select("svg"), | |
width = +svg.attr("width"), |
Data is from CDC's wonder dataset
This is code illustrates how to create a "comet chart" in R. See this research paper for more information about comet charts: http://research.google.com/pubs/pub42901.html
Built with blockbuilder.org
Copied http://jfire.io/animations/2015-03-22/ Adapted in order to use for teaching purposes.
forked from zanarmstrong's block: js fire animation adapted for teaching purposes
Built with blockbuilder.org
Data from CDC's wonder dataset on infant deaths. Please see data collection information and restrictions here: http://wonder.cdc.gov/lbd.html
This example demonstrates use of the d3-legend library.
The color scale comes from ColorBrewer.
forked from curran's block: Using d3-legend