Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
11 | |
3 | |
2 | |
2 | |
2 |