Forum Discussion

rkqpbiviz's avatar
rkqpbiviz
Regular Visitor
9 years ago
Solved

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 :D

  • rkqpbiviz,

     

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

            constructor(options: VisualConstructorOptions) {
    			options.element.style.overflow = 'auto';