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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mehul2010
Frequent Visitor

How to solve rendering problem when data points are very large?

I am trying to build a custom visual which contains nearly 20,000 data points in it. So my problem is when I resize or drag the report, all the points get distorted while displaying.

So, I want to capture the resizing event of a report and, it should stop rendering when I am resizing the report and once done resizing or dragging then display the chart again. 

 

Current Problem:

 

Is there any way I can reduce the lag or drag it smoothly. I can also stop rendering during resizing which is done in the second video.

 

Problem :

https://drive.google.com/file/d/13CiqdfEdU-9dlQ5SJ72eMWQabkfwZGiU/view?usp=sharing

 

Before DraggingBefore DraggingAfter DraggingAfter Dragging

 

Desired Output:

 

The similar output which is in the video below is expected. Is it possible to capture the resizing so that I can stop rendering during that time? I am new to custom visual so if possible help me with the code. 

 

https://drive.google.com/file/d/17_W4BfAQtKEzdzbfQ1STBhhgdQ_Jb16f/view?usp=sharing

 

Any small help will be appreciated.

Thank you

 

1 ACCEPTED SOLUTION
v-viig
Community Champion
Community Champion

Yes, it's possible to detect a resize event by checking type.

 

However, we would rather recommend you should use d3's enter-exit-remove flow to prevent your code from creating new DOM elements for each update.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

View solution in original post

2 REPLIES 2
mehul2010
Frequent Visitor

 

Problem:

 

 

Desired Output:

v-viig
Community Champion
Community Champion

Yes, it's possible to detect a resize event by checking type.

 

However, we would rather recommend you should use d3's enter-exit-remove flow to prevent your code from creating new DOM elements for each update.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.