Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a problem with retrieving color from property pane in my custom visual. In my property pane, I have boolean and color, I can retrieve boolean by
<boolean>options.dataViews[0].metadata.objects["myCustomObj"]["myprop"];
but when I try to retrieve color, using
this.host.colorPalette.getColor(<string>options.dataViews[0].metadata.objects["myCustomObj"]["take_color"]).value
I have different color. What am I doing wrong?
Solved! Go to Solution.
this.host.colorPalette.getColor
Generates a new color by identity. Please use options.dataViews[0].metadata.objects["myCustomObj"]["take_color"] instead (please laso note the value is an object. Please consider a proper handling).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
this.host.colorPalette.getColor
Generates a new color by identity. Please use options.dataViews[0].metadata.objects["myCustomObj"]["take_color"] instead (please laso note the value is an object. Please consider a proper handling).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |