Skip to content

Instantly share code, notes, and snippets.

@WillTurman
WillTurman / README.md
Last active October 9, 2016 02:07
D3 Star Trails
@WillTurman
WillTurman / README.md
Last active April 2, 2021 09:35
D3 v4 Stacked Bar Chart with Negative Values - CFNAI Data

##D3 v4 Stacked Bar Chart with Negative Values

A #d3js stacked bar chart that supports a mix of positive and negative values.

Data is from the Chicago Fed National Activity Index

The line represents the 3 month moving average of the compiled CFNAI components.

@WillTurman
WillTurman / index.html
Created March 12, 2013 04:58
Strikezone Scatterplot
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
@WillTurman
WillTurman / Readme.md
Created January 25, 2013 02:15
D3 Interactive Streamgraph

D3 Streamgraph Example

Series Hover

The series hover interactivity uses the technique from lgrammel seen here: http://bl.ocks.org/1963983

Data Tooltip

It isn't necessarily a tooltip, but data is displayed by inverting the x-axis value into a date, and mapping the date to the corresponding data value for the series.