Forum Discussion

SBusheyDewberry's avatar
SBusheyDewberry
Regular Visitor
4 years ago
Solved

Can we make exceptions to hex colors in dataColors for specific visuals?

Hello, I am new here, so I apologize if this isn;t in the right forum thread.   I am working on developing a corporate JSON theme. For the first level dataColors field at the top of the JSON file, ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi SBusheyDewberry,

    The 'datacolor' sets value will be used to assign colors to data bars of the chart that enabled the legends fields.
    If you want to accurate setting specific visual styles, you can define the visual type in the theme file and set the properties.

    Use report themes in Power BI Desktop - Power BI | Microsoft Docs

    "visualStyles": {
            "<visualName>": {
                "<styleName>": {
                    "<cardName>": [{
                        "<propertyName>": <propertyValue>
                    }]
                }
            }
        }

    Notice:

    1. Some of the properties have not been released and you can't configure them in theme files.
    2. The dynamic generated and expand parts may not able to be set in themes.

    Regards,

    Xiaoxin Sheng

  • Hariharan_R's avatar
    4 years ago

    Hi SBusheyDewberry 

    You can't handle the JSON theme dyanmically. You need to manually edit and use it in the file. Dynamic option is only applicable on the visual formatting color option which again can't stored as dynamic result in JSON.

     

    Thanks

    Hari

    Did I answer your question? Then please mark my post as the solution.
    If I helped you, click on the Thumbs Up to give Kudos.


    My Blog :: YouTube Channel :: My Linkedin