Skip to content

["bug"] Chart tooltip and chart description use different rounding #237

@pjhoberman

Description

@pjhoberman

Description:

The tooltip (when you hover over a dot on the chart) rounds the number, whereas the description underneath the chart that shows the max value uses a ceiling (rounds up). This can cause a discrepancy between the two values.

Steps to reproduce:

  1. Increase "number of days to project" to where the chart shows the lines decreasing again
  2. Hover over the peak dot and observe the value
  3. Compare that value to the description below the chart

Expected behavior:

The numbers should be the same

What I got instead:

image

In fixing this, please add a test that confirms these numbers are the same, if possible.

Note: There is also an off-by-one issue (#239), but that is why the screenshot shows different days for the peak

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions