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

White blink on initialize of charts #42

Open
makedonsky94 opened this issue Mar 23, 2022 · 2 comments
Open

White blink on initialize of charts #42

makedonsky94 opened this issue Mar 23, 2022 · 2 comments
Milestone

Comments

@makedonsky94
Copy link
Contributor

The method clearWebViewBackground is not working properly so users still suffer from this problem.

Also we should consider to clear the background automatically

@makedonsky94 makedonsky94 added this to the 3.8.1 milestone Mar 23, 2022
@phsu-bc
Copy link

phsu-bc commented Mar 25, 2022

We have implemented clearWebViewBackground on initialization of the chart view. We still see a flash of white, and also at times the background stays white even though we're in dark mode and we've configured the chart using dynamicProvider values.

Could you clarify "not working properly" and if the planned fix would potentially address the issues we're seeing?

@makedonsky94
Copy link
Contributor Author

clearWebViewBackground was intented to fix the blink on initialization of the view because this is an issue of WebView's native canvas.
The white background on theme mode chage you see related to inner logic of the chart. I mean the background of js canvas is not synchronized with native mods. When you set a color to the background the library calculates value and marshal the color to js. At the moment if you need to update chart colors you need to send the color again

@makedonsky94 makedonsky94 modified the milestones: 3.8.1, 4.0.0 Mar 1, 2023
@makedonsky94 makedonsky94 modified the milestones: 4.0.0, 4.0.1 Sep 1, 2023
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

No branches or pull requests

2 participants