Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top 10 list refreshes multiple times, occasionally resulting in incorrect clipping #615

Closed
dlaliberte opened this issue Nov 4, 2020 · 4 comments
Assignees
Labels
bug Something isn't working Visualization Used to filter issues when synching with Asana

Comments

@dlaliberte
Copy link
Contributor

Actual Behavior:

The top 10 list refreshes the display of the charts multiple times, partly due to dynamic loading of data but also resize events and clipping recalculations. This is visible in origin/dev versions, especially after #575. See https://deploy-preview-575--cmu-delphi-covidcast.netlify.app

The problem is that, occasionally and inconsistently, the resulting display clips the lines incorrectly.

Steps to Reproduce the Bug:

Go to the Top 10 list, and keep switching the indicator that is 'Displaying' by using the drop-down selector until you notice that the clipping is incorrect.

The 7-day average charts for 'Cases' and 'Deaths' are always clipping incorrectly, but for a different reason.

Expected behavior

Refreshes should be minimized.
Clipping should be consistently correct.

Rating Scale (1 is minor, 7 is severe):

5

@dlaliberte dlaliberte added the bug Something isn't working label Nov 4, 2020
@dlaliberte dlaliberte self-assigned this Nov 4, 2020
@dlaliberte
Copy link
Contributor Author

Sam says:

it is difficult to say what triggers all the refreshes, I assume there is a "loading refresh" and "have single data" and "have all data = define clipping area" one

in order to reduce the refreshes one could synchronize the loading of all data such that the (clipped) spec and data is resolved/computed at the same time. then you should just have: loading and ready

@dlaliberte
Copy link
Contributor Author

The multiple refreshes are still occuring, though reduced in number, and the final state seems to be consistently correct now. So this problem is not quite resolved, but much less severe.

@SumitDELPHI SumitDELPHI added the Visualization Used to filter issues when synching with Asana label Dec 2, 2020
@sgratzl
Copy link
Member

sgratzl commented Dec 4, 2020

@dlaliberte anything I can help with in this issue?

@dlaliberte
Copy link
Contributor Author

I believe your changes that refactored the resize updates fixed the remaining extra refreshes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Visualization Used to filter issues when synching with Asana
Projects
None yet
Development

No branches or pull requests

3 participants