Skip to content

Instantly share code, notes, and snippets.

@matthewstokeley
Last active January 2, 2019 02:56
Show Gist options
  • Save matthewstokeley/5bcc522e2bcd40f00c449382e0d08c87 to your computer and use it in GitHub Desktop.
Save matthewstokeley/5bcc522e2bcd40f00c449382e0d08c87 to your computer and use it in GitHub Desktop.
D3 line graph encapsulation (WIP)
// type definitions needed
const scale = (scale: String, domain: Array<Number>, range: Array<any>) => d3[scale]().domain(domain).range(range)
const axis = (scale: D3Scale) => d3.axis(scale)
const data = new Set(
[], [], [], []
);
for (const gridCoordinate of data) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment