Forum Discussion

Garrysfarrell's avatar
Garrysfarrell
Frequent Visitor
4 years ago
Solved

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...
  • rogerlight's avatar
    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