Recidiviz / justice-counts-components

A set of React components powering a web app for exploring centralized, standardized metrics on the performance of justice systems across the United States
GNU General Public License v3.0
1 stars 0 forks source link

Add one buffer month to the time domain on the graphs #54

Closed hobuobi closed 3 years ago

hobuobi commented 3 years ago

Current behavior for 1 year covers exactly 12 months of data (e.g., December 2019 to November 2020). However, in order to make sure that at least two data points are visible for data reported annually, we should add a single buffer month to the domain of the chart. In the previous example, we should show data from November 2019 to November 2020.

This rule should apply to both the 1 year and 5 year charts.