Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I am accessing the color palette in visual.ts, and in cases where the user has not selected a fill color, it takes the first color from their color palette (in my current case, blue via colorPalette.getColor('0').value). It's all working great. However, the formatting pane still shows a non-selected color as its default, because I can't work out how to pass the blue colour into the settings.ts file. Is this actually possible?
I thought:
1) Import Visual into settings, but settings file runs before visuals file, and this would be a waste of memory anyway;
2) define a class within settings, and import the colour palette there, but that isn't working because I can't pass the VisualConstructorOptions into the class.
Any thoughts welcomed.
Solved! Go to Solution.
Hi @VizDataLtd,
So you mean to custom the default color in the color picker panel? AFAIK, current powr bi seems not existed features to customize on these. (custom visuals invoked these interface instead of customize on these UI and elements)
Regards,
Xiaoxin Sheng
Hi @VizDataLtd,
So you mean to custom the default color in the color picker panel? AFAIK, current powr bi seems not existed features to customize on these. (custom visuals invoked these interface instead of customize on these UI and elements)
Regards,
Xiaoxin Sheng
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 |