Last active
June 25, 2017 09:55
-
-
Save yani-/4c89d6255ac206d08ef1ef4b843f000a to your computer and use it in GitHub Desktop.
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
data.forEach(d => { | |
d.date = timeFormat(d.date); | |
}); | |
const metrics = color.domain().map(name => {{ | |
name : name, | |
values : data.map(d => {{ | |
date : d.date, | |
count : +d[name] | |
}} | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment