Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I am building a custom visual and have a property "Number of Decimal Places" that is a user input within the format panel. With the latest FormattingModel utils API, I am using the "NumUpDown" Formatting Property and Numeric in the Capabilities Value Type. In the microsoft documentation (https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-o...) it suggests using the following code to constrain the values of a numeric input:
this.visualSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualSettingsModel, options.dataViews);
this.visualSettings.circle.circleThickness.value = Math.max(0, this.visualSettings.circle.circleThickness.value);
this.visualSettings.circle.circleThickness.value = Math.min(10, this.visualSettings.circle.circleThickness.value);
However, the formatting panel does not seem to immediately update, you have to click into a different card before the value updates to the contrained value. Is there a method to update the format panel immediately after the code shown above to reflect the contraint? Or a different method to contrain the value within the getFormattingModel() method?
Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
4 | |
2 | |
1 | |
1 |