Forum Discussion
rkqpbiviz
9 years agoRegular 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 - ...
- 9 years ago
It depends on the parent element. You may use JavaScript syntax as shown below.
constructor(options: VisualConstructorOptions) { options.element.style.overflow = 'auto';
v-chuncz-msft
Community Support
9 years agorkqpbiviz
9 years agoRegular Visitor
Can you advise me what the object would be called in the css?
- v-chuncz-msft9 years ago
Community Support
- rkqpbiviz9 years agoRegular Visitor
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
- v-chuncz-msft9 years ago
Community Support
It depends on the parent element. You may use JavaScript syntax as shown below.
constructor(options: VisualConstructorOptions) { options.element.style.overflow = 'auto';