Skip to content

Instantly share code, notes, and snippets.

View paltman's full-sized avatar

Patrick Altman paltman

View GitHub Profile

A line chart with mouseover so that you can read the y-value based on the closest x-value. The x-value is found using d3.mouse and scale.invert. The y-value is then found by bisecting the data.

@paltman
paltman / README.md
Last active August 29, 2015 14:01 — forked from mbostock/.block
Ticket Sales Over Time

This chart should represent ticket sales over time and features a gradient fill as well as tooltips on data points.

It should look like:

Ticket Sales Over Time Mockup