Skip to content

Missing axes in time series #578

@macfarlandian

Description

@macfarlandian

Describe the bug
When clicking through from the homepage to the prison page, the historical data chart will be rendered without margins or visible axis labels (aka in "preview" form). Reloading the page resolves the error, which suggests that some UI state is being inadvertently carried over from the homepage.

To Reproduce
Steps to reproduce the behavior:

  1. Go to spotlight-staging.recidiviz.org/us-nd
  2. Click on "Explore Prison Data"
  3. Scroll down to section 3, the time series
  4. See error

Expected behavior
The chart is rendered with correct margins and axis labels.

Screenshots

Screen Shot 2022-06-28 at 10 53 08 AM

Desktop (please complete the following information):
n/a

Smartphone (please complete the following information):
n/a

Additional context
Currently affects staging only as the new homepage has not been deployed to prod.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions