Using the time scale
Often, we perform analysis on a data set that is time- and date-sensitive, therefore, D3 provides a built-in time scale to help perform this type of mapping. In this recipe, we will learn how to use D3 time scale.
Open your local copy of the following file in your web browser:
How to do it...
First, let's take a look at the following code example: