Skip to content

Instantly share code, notes, and snippets.

@yani-
Last active June 25, 2017 09:54
Show Gist options
  • Save yani-/b4f517539006d56fafe4d8d09ca9f580 to your computer and use it in GitHub Desktop.
Save yani-/b4f517539006d56fafe4d8d09ca9f580 to your computer and use it in GitHub Desktop.
const x = d3.scaleTime().rangeRound([0, chartWidth]);
const y = d3.scaleLinear().rangeRound([chartHeight, 0]);
const color = d3.scaleOrdinal(d3.schemeCategory10);
const timeFormat = d3.timeParse("%Y-%m-%d"),
const bisectDate = d3.bisector(d => parseTime(d.x)).left;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment