Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

JSON File Theme Help (MultiRowCard Labels, Table Values)

Hi guys

I am a Power BI newbie - and haven't written code before. I'm trying to upload the below from my notepad but I keep getting an error message - can anyone see what I'm doing wrong? 

 

{
"name":"Colour Theme",
"dataColors":[
"#2051a3",
"#20b7e8",
"#00173c",
"#8965ab",
"#fl5b5d",
"#f78d28",
"#97c93d",
"#45b0b1",
"#e05f87",
],
"background":"#FFFFFF",
"foreground":"#FFFFFF",
"tableAccent":"#2051a3"
}

 

Thanks so much

Shiv

  • Hi Anonymous ,

     


    {
    "name":"Colour Theme",
    "dataColors":[
    "#2051a3",
    "#20b7e8",
    "#00173c",
    "#8965ab",
    "#fl5b5d",
    "#f78d28",
    "#97c93d",
    "#45b0b1",
    "#e05f87",
    ],
    "background":"#FFFFFF",
    "foreground":"#FFFFFF",
    "tableAccent":"#2051a3"
    }


    It was the wrong color hex code "#fl5b5d" in above JSON file that caused failure of import. Please change it with a correct one, for example "#F5C040", problem could be resolved.

     

    Best regards,

    Yuliana Gu

1 Reply

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi Anonymous ,

     


    {
    "name":"Colour Theme",
    "dataColors":[
    "#2051a3",
    "#20b7e8",
    "#00173c",
    "#8965ab",
    "#fl5b5d",
    "#f78d28",
    "#97c93d",
    "#45b0b1",
    "#e05f87",
    ],
    "background":"#FFFFFF",
    "foreground":"#FFFFFF",
    "tableAccent":"#2051a3"
    }


    It was the wrong color hex code "#fl5b5d" in above JSON file that caused failure of import. Please change it with a correct one, for example "#F5C040", problem could be resolved.

     

    Best regards,

    Yuliana Gu