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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
giorgikok
Frequent Visitor

Delete/cleanup custom visual whenever the necessary data is not longer bound

Hello, 

I am trying to figure out why my column chart visual is not properly deleting after adding the data and then removing it. For instance, removing categories should void the visual since it can't display it anymore but the columns stay on with the last data they've received also without properly scaling to the visual window. 

I am wondering what the problem might be, the destroy() method only does sets the this.svg to null which should be enough to delete the visual from the display window. 

1 ACCEPTED SOLUTION
giorgikok
Frequent Visitor

I figured it out: just had to do this.barContainer.selectAll("*").remove(); whenever the necessary conditions for deletion were met. 

View solution in original post

1 REPLY 1
giorgikok
Frequent Visitor

I figured it out: just had to do this.barContainer.selectAll("*").remove(); whenever the necessary conditions for deletion were met. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors