ICTatRTI / coconut-analytics

Browserified & backboned version of coconut-reports
Other
2 stars 3 forks source link

Graph: Number of Positive Cases by Age Group does not show index cases #327

Closed gmcressman closed 6 years ago

gmcressman commented 6 years ago

There are index cases (positive) with age values during the time period of the graph shown below. Why doesn't the graph show this?

screen shot 2018-01-30 at 4 08 43 pm

scloo commented 6 years ago

Fixed. Changed the condition from under5 =doc["Number Positive Cases At Index Household And Neighbor Households Under5"] to under5 = if doc["Number Positive Cases At Index Household And Neighbor Households Under 5"]? then doc["Number Positive Cases At Index Household And Neighbor Households Under 5"] else doc["Number Positive Cases At Index Household And Neighbor Households Under5"]

gmcressman commented 6 years ago

This looks correct now. I compared it with some of the data. I will do a more thorough check before closing this.

gmcressman commented 6 years ago

Checks against the data. Looks ok now.