March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am working on a JSON file for a custom theme for Power BI. For some of the visuals I have set that data labels should be on. However when I import the theme, I can't manually change this setting in the desktop version. So if I have set the data labels to be on in the JSON file, I can't turn them off manually in desktop version of Power BI. The reverse also happens. If I have turned data labels off in the JSON file, they can't be turned in manually in Power BI. It's only an issue with Data labels. Fx I can turn Total labels and Series labels on/off as I want no matter the settings in the JSON file.
The only work-around I found is to go into Data Labels > Apply settings to > and then choose each series and turn off data labels for the series I want. However this is not feasible in settings, where there are many series.
I would like to be able to choose whether the Data Labels are on or off by default, but I still need to be able to change it in Power BI for some specific cases of data.
Is this a general thing, or is it something specific in my JSON file?
I provided an example of the 'labels' section of the JSON file below:
Don't know if I should provide the entire JSON file here, as it is quite long?
"labels": [
{
"show": true,
"showSeries": true,
"color": {
"solid": {
"color": {
"expr": {
"ThemeDataColor": {
"ColorId": 0,
"Percent": 0
}
}
}
}
},
"labelDisplayUnits": 0,
"labelPosition": "Auto",
"enableBackground": true,
"backgroundColor": {
"solid": {
"color": {
"expr": {
"ThemeDataColor": {
"ColorId": 6,
"Percent": 0.2
}
}
}
}
},
"backgroundTransparency": 0,
"labelOverflow": false,
"showAll": false,
"fontSize": 8,
"fontFamily": "Arial"
}
]
I noticed the same thing within my JSON theme today. I'm going to guess this is a bug as there have been mulitple JSON theme bugs since their February update I beleive. Thank you for your workaround though!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
5 | |
3 | |
1 | |
1 | |
1 |