Forum Discussion
luojiandanPBI
2 years agoHelper I
how to get default background color?
how to get default background color? thank you for your help.
- 2 years ago
Hi luojiandanPBI,
It's not possible to obtain the details on the background color of the container. I have previously asked for this, but MS has declined to implement it. If more developers request it, it may suggest a greater need for this in the community.
Bear in mind that the report canvas may have a specific color applied, and the visual container won't know about this, so it wouldn't be entirely foolproof.
Regards,
Daniel
lbendlin
2 years agoSuper User
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
luojiandanPBI
2 years agoHelper I
thank you for reply.
I want to add watermark for custom visual.
and I try this,but false.
this.settings = Visual.parseSettings(options && options.dataViews && options.dataViews[0]);
console.log("objects:",options.dataViews[0].metadata.objects);
console.log("default bgColor:",options.dataViews[0].metadata.objects['style'].backgroundColor);