Skip to content

Relative percentage change sometimes reads "Infinity%". #57

@malchata

Description

@malchata

Currently, if a starting value in a dataset is 0, the relative percentage change of a trend will display as "Infinity%" (because dividing by 0 in JS returns Infinity):

screen shot 2018-07-29 at 1 04 34 pm

The culprit is the getChange function in timeseries.js not checking if the initial value is 0.

Proposed fix: Either hide the relative change labels in this case, or just insert something like a dash or "n/a".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions