Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

White screen when turning pages

Hello everyone,

I'm building a custom visuals sample bar chart like this MS git link : https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/barChartTutorial-FormattingModelUti...
And this is my chart: 

NgaMoon_4-1706415880282.png

 

Everything seems fine, but when I switch page 1 to page 2, then from page 2 to page 1, my visuals are blank, I don't know what happens to it. Can anyone explain why and guide me to fix it? @dm-p hope you help me

NgaMoon_3-1706415850139.png

 

NgaMoon_2-1706415838019.png

 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Ah, thanks for confirming more details. Yes, this seems to be an issue with the developer visual, where it sometimes doesn't seem to initialise correctly. You can do something like resize the visual or change a property on the container to force it to initialise correctly on that occasion. When your visual is packaged, this doesn't happen and it works as expected.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

4 REPLIES 4
dm-p
Super User
Super User

Ah, thanks for confirming more details. Yes, this seems to be an issue with the developer visual, where it sometimes doesn't seem to initialise correctly. You can do something like resize the visual or change a property on the container to force it to initialise correctly on that occasion. When your visual is packaged, this doesn't happen and it works as expected.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

It work in powerbi app when I package my viusals. but I have some problem with setting when change page. I will create a new discuss. Thank you

dm-p
Super User
Super User

Hi @Anonymous,

 

Without any code, capabilities or dataset details it will not be possible to say what is wrong from the supplied screenshots. The only thing I can say for sure is that some portion of the code is causing an error and your visual is crashing.

 

Have you attempted any debugging so far? What errors does the JavaScript console report? This will help you to start finding the root cause, as the error will likely point to the line causing the error. You can also try using a debugger statement in your code to step through and find where errors may occur.

 

If you have followed these steps and nothing obvious is sticking out, then we can try to dig a bit deeper. Please note that these kinds of problems can take many hours for another developer to review, which can be a large undertaking for a forum member providing free support. To get this answered more quickly, please supply as much contextual information as possible, ideally:

 

  • Details or screenshots of console errors.
  • Specific location in your code you believe the error might be localized to (if you know).
  • A copy of your project's files (ideally a repo that can be cloned with minimal setup).

Regards,

 

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

hello, sorry for my delay, I thinks it not a bugs, because this code I copy in Microsoft template chart visuals, and this is my link code : https://github.com/ThuThuy103/powerbi-chart

NgaMoon_0-1706497527095.png

In my code, I console "constructor" and "update" in func constructor and update. This is my video what I do in my custom visual : https://vimeo.com/907392033?share=copy

[video]

When I change page 1 to page 2 and back to page 1. My update func is not called and it show white background. I dont khow why. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors