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
rkqpbiviz
Regular Visitor

make custom visuals scrollable

Hello - I am developing a custom visual in Power BI using typescript and the inbuilt d3 library, it is basically a very specific bullet chart - everything is going pretty well except for one thing - is there a simple way to make the visual scrollable? I've been looking at d3 solutions but they all seem fairly labour intensive so I wanted to know was there an inbuilt object or something similar? Thank you in advance 😄

1 ACCEPTED SOLUTION

@rkqpbiviz,

 

It depends on the parent element. You may use JavaScript syntax as shown below.

        constructor(options: VisualConstructorOptions) {
			options.element.style.overflow = 'auto';
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-chuncz-msft
Community Support
Community Support

@rkqpbiviz,

 

Based on my experience, you can simply use CSS overflow Property.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Can you advise me what the object would be called in the css? 

@rkqpbiviz,

 

It's certainly clear.

overflow: scroll;
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sorry, perhaps I not been clear - 

 

In the link to the example you posted, it suggested using 

 

div {

 

overflow:scroll;

 

}

 

My question is, in the context of the power BI visual, what is the right term to use instead of div? i.e.

 

WhatShouldBeWrittenHere{

 

overflow: scroll;

 

}

 

Div does not work and I don't know what the right thing to use in this context

@rkqpbiviz,

 

It depends on the parent element. You may use JavaScript syntax as shown below.

        constructor(options: VisualConstructorOptions) {
			options.element.style.overflow = 'auto';
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for this answer.

Perfect thank you! @v-chuncz-msft

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.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.