March 2017
Beginner to intermediate
868 pages
18h 52m
English
In this section, we will create an area chart to display stock prices and use brushing to allow the user to select an interval and get additional information about that time interval.

Selecting a time interval with brushing
We will use the time series of the prices of the AAPL stock, available as a TSV file in the D3 examples gallery. The file contains the date and closing price for the date, covering almost 5 years of activity, as shown in the following code:
date close 1-May-12 582.13 30-Apr-12 583.98 27-Apr-12 603.00 26-Apr-12 607.70 ...
We begin by creating the structure of a reusable chart; ...
Read now
Unlock full access