The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
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
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi,Daniel,Thanks 🤝
Unfortunately this is outside my area of expertise. I hope someone else can help you further.
Thank you for your continued attention and have a good day!
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
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);
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.