Allow for multiple time range comparisons for a single location
Major use case: viewing how covid has impacted metrics
This will sit inside the location panel
Should function similarly to this example from ETS comparing filings to average
Discussion
Ashley asked for this functionality under "preset views" function too. This could be added as an event to the Time Series view. Should this sit in the location panel or time series view? Or both?
This will sit in Location Panel for now. Component is useful in drawing user's attention specifically to the effects that COVID has had on the data.
the location panel has a section titled (Pre-COVID vs. COVID-19 Era)
there is a button group to toggle between two comparison time series views:
Filing Counts
Relative to 2019 (Pre-COVID)
when an option in the button group is selected the time series updates to the corresponding view
Filing Counts View
displays when the "filing counts" option is active in the button group
displays a line for each year from (and including) 2019
has an X axis that spans from January - December
has a Y axis that starts at 0 and goes to the max value from the collection of lines.
has a legend that maps each year to each color used for the lines
on hover a tooltip is displayed showing a label for each year, the corresponding values at the hovered "X" position, and for non-2019 values the difference between the year and the 2019 value.
Relative to 2019 (Pre-COVID) View
displays when the "Relative To 2019 (Pre-COVID) button toggle is activated
has a horizontal axis from January - December
has a vertical axis that represents % change values compared to 2019
displays a dotted horizontal line at the "0" point that represents thebase 2019 value for comparison
displays a line for each year after 2019, with values that correspond to the % change from the 2019 value
has a legend that labels the dotted 2019 line, and each year / color combination
on hover a tooltip is displayed showing a label for each year and the corresponding % change values at the hovered "X" position
Description
Allow for multiple time range comparisons for a single location
Discussion
Ashley asked for this functionality under "preset views" function too. This could be added as an event to the Time Series view. Should this sit in the location panel or time series view? Or both?