DEV Community

Discussion on: I made coronavirus spread timeline

 
dbumbeishvili profile image
David B.

I think you should add that stat stuff to the map image parts as it will be better unlike the use of the original map for showing the stats or opening a new page

I am not sure what you are referring

I'll also suggest using service worker and cache to fetch the data in the background as it will help in smoothening of the transitions because data will be already present.

Once the transition is started, data is already presented, it's not heavy operation. I am not sure if you are familiar with observablehq runtime which I am using. I will need to tackle it to make the animation smoother

Thread Thread
 
sharadcodes profile image
Sharad Raj (He/Him)

Well I should open it on PC for better understanding

Thread Thread
 
dbumbeishvili profile image
David B.

Basically it's Jupiter notebook for javascript. Dependent cells are executed automatically. So, every tick means new cell -> code snippet execution, so basically the whole map redraws. Instead, I want to retrieve map reference, add smooth redraw function and invoke it on each animation tick