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

Fix flickering graphs #166

Merged
merged 10 commits into from
Nov 15, 2023
Merged

Fix flickering graphs #166

merged 10 commits into from
Nov 15, 2023

Conversation

antonymilne
Copy link
Contributor

@antonymilne antonymilne commented Nov 13, 2023

Description

There's currently a smaller flicker that's detectable when you change theme and then screens. I think I've been able to remove this by changing create_empty_fig to use a transparent background.

Before

Now
Hopefully no flicker.

@petar-qb and/or @nadijagraca please could you give this a careful test to see if (a) you can see the flickering currently and (b) that this has fixed it? I had several failed attempts at fixing this so would be great to double check this one works!

@petar-qb checked and all fixed now.

Also in this PR:

  • remove some dead code
  • added some more comments just documenting my understanding of the theme update stuff because I found it confusing before

Screenshot

Checklist

  • I have not referenced individuals, products or companies in any commits, directly or indirectly
  • I have not added data or restricted code in any commits, directly or indirectly
  • I have updated the docstring of any public function/class/model changed
  • I have added tests to cover my changes (if applicable)

Types of changes

  • Docs/refactoring (non-breaking change which improves codebase)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.

Copy link
Contributor

@petar-qb petar-qb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look really good!
I guess there's still a lot of work in purpose to adjust tests here.

vizro-core/src/vizro/models/_components/graph.py Outdated Show resolved Hide resolved
vizro-core/src/vizro/models/_page.py Outdated Show resolved Hide resolved
@antonymilne antonymilne enabled auto-merge (squash) November 14, 2023 16:09
Copy link
Contributor

@lingyielia lingyielia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Also tested on my local and server. Works very well 👍

@antonymilne antonymilne merged commit 0a73928 into main Nov 15, 2023
33 checks passed
@antonymilne antonymilne deleted the tidy/update-theme branch November 15, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants