Forum Discussion
Garrysfarrell
5 years agoFrequent Visitor
Theme JSON code for Total labels
I am using this code to control the data labels for the Stacked Bar Chart. However, I want to add the "Total labels" to the theme JSON file but I cannot find any documentation for the Total labels. I...
- 4 years ago
Hi Garrysfarrell ,
Here's what you need to add to your barChart theme section:
"totals": [
{
"show": true,
"color": { "solid": { "color": "#FFFFFF" } },
"fontSize": 9,
"fontFamily": "Segoe UI"
}
],
You can sometimes discover the correct terminology by looking in the Layout file inside the unzipped PBIX file.
Hope that helps!Regards,
Roger
Garrysfarrell
5 years agoFrequent Visitor
Didn't seem to work. I tried all variations of what I thought may be errors.
"show Total" --> "showTotal"
"TotalLable" --> "TotalLabel"
"TotalLable" --> "totalLabel"
"TotalLable" --> "totalLable"