D3 group doesn't group by date | Guillaume Levrier | Observable
ojs
ojs
ojs
ojs
ojs
Comments (2)
Fil
Aug 28, 2020
It groups by "equality" and two JS Date objects are never equal
https://stackoverflow.com/questions/7244513/javascript-date-comparisons-dont-equal
use d3.group(dataTime, d => +d.date) instead see
https://observablehq.com/@d3/d3-group#key_equality
Guillaume Levrier
Aug 28, 2020
Cool thanks!
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Guillaume Levrier
1
Reply
Add comment
Subscribe to notifications
0
D3 group doesn't group by date | Guillaume Levrier | Observable