Forum Discussion

ToddChitt's avatar
ToddChitt
Super User
7 years ago
Solved

Better Theme documentation and samples

I'm trying to write my own custom theme JSON file base on samples I have downloaded from this page: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes and this very handy git repo: http...
  • dax's avatar
    dax
    7 years ago

    Hi ToddChitt,

    It seems that you want to combine multiple visuals in the same json file and apply global setting, right? If so, I think you could try below

    {"name":"My Theme",
    "visualStyles":{
    "*":{
    "*":{"*":[{"fontSize":12,"fontFamily":"Calibri, Cambria","color":{"solid":{}}}]}},
    "pieChart":{"*":{"legend":[{"show":true,"showTitle":true,"labelColor":{"solid":{"color":"#75b2f0"}}}],"general":[{"responsive":true}]}},
    "card":{"*":{"labels":[{"show":true,"color":{"solid":{"color":"#1c7ad9"}},"fontSize":20}]}}}}

    You could use Report Theme Generator V3 this tool, to create json, when you set multiple visuals, you could click donwload button, it will ceate and download json file for you(you also could modify the file based on your requirement)

    Best Regards,
    Zoe Zhi

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