Last active
January 2, 2019 02:56
-
-
Save matthewstokeley/5bcc522e2bcd40f00c449382e0d08c87 to your computer and use it in GitHub Desktop.
D3 line graph encapsulation (WIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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