konradkalemba / korona.ws

🗺 Coronavirus interactive map of Poland
https://korona.ws
73 stars 29 forks source link

Include daily change by region #60

Open thebergamo opened 4 years ago

thebergamo commented 4 years ago

Would be nice to see how many cases are new based on region basis.

thebergamo commented 4 years ago

Question: @konradkalemba do we have access to how data is populated? Can we do some queries with current data? How we can do it?

Couldn't find much details about the backend itself, if you could share those infos with us, I could implement this feature.

konradkalemba commented 4 years ago

@thebergamo Yes, of course.

Here is a zip with json supplied from Firebase: cases.zip

Kamil-kozlowski commented 4 years ago

@thebergamo Maybe this will be helpful: There is already some logic for region new daily cases as it appears in the popup when you click on a Marker. Take a look here and below how it is used.

thebergamo commented 4 years ago

Grea! Thanks I will be looking into it tomorrow o/

On Wed, 1 Apr 2020 at 09:43 Kamil Kozlowski notifications@github.com wrote:

@thebergamo https://github.com/thebergamo Maybe this will be helpful: There is already some logic for region new daily cases as it appears in the popup when you click on a Marker. Take a look here https://github.com/konradkalemba/korona.ws/blob/f85b14d6e6270b74b73aa1c0ccef9ac852b14d6c/src/components/Figures/Figures.jsx#L41-L44 and below how it is used https://github.com/konradkalemba/korona.ws/blob/f85b14d6e6270b74b73aa1c0ccef9ac852b14d6c/src/components/Figures/Figures.jsx#L56-L94 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/konradkalemba/korona.ws/issues/60#issuecomment-607088530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANSIKWFU3OXJKDWCTNARRTRKLWBHANCNFSM4LXUF6PA .

-- Marcos Vinicius Bérgamo http://www.linkedin.com/profile/view?id=144314576&trk=tab_pro C: +55 11 96067-7771 http://www.marcosbergamo.com http://www.marcosbergamo.com/