Forum Discussion

DaleH's avatar
DaleH
Resolver I
4 years ago
Solved

Create json Theme for non-standard visuals

I'm creating a Theme and want to style the "Power KPI 2.0.0" chart type visual.  How do I find out what the value pair would be?   This line is for a "KPI" chart type.   Thx
  • v-jianboli-msft's avatar
    4 years ago

    Hi DaleH

     

    First, create an empty Power BI file, add a visual, set all the properties you want, save the file, and close Power BI Desktop. Next, you rename the file from *.pbix to *.zip and unzip the file. A detailed description of all files in the unzipped folder can be found here. Find the file Report/Layout in which all visuals of the report sheets are defined. 

     

    Open the file in your preferred editor and format it as JSON. Then, navigate to the page with your visuals and find the visual you want to analyze. Go to the config property and copy its content. Replace \" with" and format the JSON code again. You will get the following: 

    For more details, please refer to:

    How To Discover Undocumented Theme Settings in Power BI Desktop | by Nolock | Medium

     

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.