Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Error with themes: decimal places not set

When applying a custom theme built in json, I'm not able to change the number of decimals for the data labels on 100% stacked bar/column, donut charts, and pie charts. This applies to percentages. Whether I enter 0 or 1 or more, it always sticks to the default which is probably automatic.

 

I used the following code for the data labels:

"labels": [{
"show": true,
"color": {
"solid": {
"color": "#777777"
}
},
"labelDisplayUnits": "0",
"labelPosition": "Auto",
"labelPrecision": "Auto",
"enableBackground": false,
"backgroundColor": {
"solid": {
"color": "#FFFFFF"
}
},
"backgroundTransparency": 90,
"fontSize": 9,
"fontFamily": "DIN"
}
],

 

I also changed labelPrecision to 1 and 2, but no effect.

Status: New
Comments
v-chuncz-msft
Community Support
Raid
Frequent Visitor

Thanks, the solution worked!