Chapter 6 Interactive component

6.1 Compare death rates between two states in US (D3)

Compare death rates of two states

The interactive plot provides us with the functionality to compare the trends of Covid-19 death rates of two states or entire US. Since the number of states in US is large, it is hard to make comparisons of the trends between two states among fifty lines on the plot. Therefore, the interactive plot enables users to choose two of the fifty states in US or entire US and see the corresponding lines of death rates along with time. This helps the users compare the trends of different states and US.