covid19india / covid19india-react

Tracking the impact of COVID-19 in India
https://www.covid19india.org
MIT License
6.86k stars 3.41k forks source link

Cases in negative #2447

Closed Jaideep25 closed 3 years ago

Jaideep25 commented 3 years ago

Hi! Your app is just amazing and cool!

Just their is a bug I have seen.... Click on daily, And choose any state, or let it be the coutry, as you can see the active cases go to negative image Hoping you can solve this problem or bug! Thank you! Regards!

pratham1002 commented 3 years ago

That is the daily change in active cases you are seeing, it is not a bug but is supposed to be that way. To track the total number of active cases on a particular day, use the Cumulative graphs.

Jaideep25 commented 3 years ago

But how can the cases go negative?? @pratham1002

pratham1002 commented 3 years ago

More people recovered on a particular day than got infected. Hence the net change in active cases is negative.

Jaideep25 commented 3 years ago

But in real... we can't get negative....

krishnashenoy123 commented 3 years ago

@Jaideep25, it's not the confirmed cases, active case can't be negative whereas the active cases it can go negative or positive or zero. If more number of people are recovered than the number of confirmed cases that day, then the active case will become negative. active case = confirmed case - recovered case - deaths.

Jaideep25 commented 3 years ago

I know that formula, but active cases means that the number of people who still are suffering from corona that day, which isn't possible to be negative..

krishnashenoy123 commented 3 years ago

You still didn't get it !!? Its not the people suffering, its the net total for the day.

ShikariShambuJr commented 3 years ago

Refer to https://github.com/covid19india/covid19india-react/issues/2038#issuecomment-641962963