Export Image
Export Code

D3 Line Chart With Brush - Earthquakes

Junying Li

Last edited Nov 18, 2021
Created on Nov 17, 2021

A D3 line chart shows the global total deaths caused by earthquakes from 1900 to 1999.

Brush:

  1. Select:

In selected area, circles become red.

  1. Double click:

If user has already selected an area, user can unselect it by double clicking in this area. If user has not selected area, double click will select all circles.

Data: Earthquakes Dataset.


Y-axis:

Global total deaths in the year

X-axis:

Year

MIT Licensed