RhoInc / clinical-timelines

clinical events over time by participant
https://rhoinc.github.io/clinical-timelines/test-page/
MIT License
9 stars 4 forks source link

Renderer doesn't work when dates or days are not available #188

Closed emmorris closed 6 years ago

emmorris commented 6 years ago

Renderer doesn't work and presents an error message when dates or days are not available. It should adjust the time scale so that if days are not available, then it uses dates and vice versa.

Test Notes:

  1. With the "Time Scale" drop-down set to "date" in the settings form on the left panel of CAT, alter the "Start Date" variable name to a name that doesn't exist like "a."
  2. Click "Render Chart"
  3. The chart should load and the "Start" and "End" fields in the "Controls" section of the chart should display the opposite time scale of days.
  4. The opposite should happen if you change the time scale to "day" and alter the "Start Day" variable name to a name that doesn't exist. It should render and the "Start"and "End" fields should display dates.