Skip to content

Instantly share code, notes, and snippets.

@yani-
Created June 25, 2017 09:23
Show Gist options
  • Save yani-/e2730047f92fcf2bb1c2cbf7e0d6ceaf to your computer and use it in GitHub Desktop.
Save yani-/e2730047f92fcf2bb1c2cbf7e0d6ceaf to your computer and use it in GitHub Desktop.
x.domain(d3.extent(data, d => d.date));
y.domain([
d3.min(metrics, c => d3.min(c.values, v => v.count)),
d3.max(metrics, c => d3.max(c.values, v => v.count))
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment