The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Convert Dates to Numeric Values with Time Scales in D3 v4

Convert Dates to Numeric Values with Time Scales in D3 v4

2:43
Mapping abstract values to visual representations is what data visualization is all about, and that’s exactly what D3 scales do. This is usually done using pretty straightforward algorithms, but nothing is straightforward when you’re working with Date objects in JavaScript. If you’re plotting temporal data, you need to use a time scale.
Watch this lesson now
Avatar
egghead.io

Mapping abstract values to visual representations is what data visualization is all about, and that’s exactly what D3 scales do. This is usually done using pretty straightforward algorithms, but nothing is straightforward when you’re working with Date objects in JavaScript. If you’re plotting temporal data, you need to use a time scale.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?