Forum Discussion

ThomasCh's avatar
ThomasCh
Frequent Visitor
4 years ago
Solved

Table border color in JSON

Hello,


I am trying to change the border color for tables in JSON, but I am unable to find out the code for this. The color I want to change is located under "Grid" and "Border".

 

This will change this line:

This is how I have implemented the table code into the JSON document:

However, this doesn't seem to work. Any ideas how this is done? 

Also, are there any place where I can find updated JSON codes for each elements in Power BI? As Power BI gets an update, I am unable to find out how to edit in JSON.


Thanks in advance!

 



 

  • Hi again ThomasCh ,

    One last try for the sake of our pride:

    Try adding this line of code to the "Grid" section instead of border:

    If this works, you buy me coffee later ๐Ÿ™‚
    If it doesn't work, at least we gave our best!

    Hope I was of assistance!
    Cheers
    Joao Marcelino
    Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated ๐Ÿ™‚

9 Replies

  • JoaoMarcelino's avatar
    JoaoMarcelino
    Responsive Resident

    Hi ThomasCh ,
    How are you? ๐Ÿ™‚

    There is an amazing JSON visuals repository for Power BI, that the brilliant and kind Matt Rudy ( MattRudy (Matt Rudy) ยท GitHub) did and shares for free: GitHub - MattRudy/PowerBI-ThemeTemplates: JSON Templates for assembling Power BI Themes

    What you probably need to do is:
    Go to the  specific visual you need

    And then, by keeping the same structure, add the piece of code you need, probably this:

     

    I hope this helps!

    Hope I was of assistance!
    Cheers
    Joao Marcelino
    Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated ๐Ÿ™‚
     

    • ThomasCh's avatar
      ThomasCh
      Frequent Visitor

      Hello there, and thank you for your reply! 

      I know about this site, and unfortunately it doesn't look like it has been updated lately. As you can see from my attached photo, that attribute changes the border for the whole table, and not where I want it to change (that blue line should be orange).

       

      • JoaoMarcelino's avatar
        JoaoMarcelino
        Responsive Resident

        Hi again ThomasCh ,

        One last try for the sake of our pride:

        Try adding this line of code to the "Grid" section instead of border:

        If this works, you buy me coffee later ๐Ÿ™‚
        If it doesn't work, at least we gave our best!

        Hope I was of assistance!
        Cheers
        Joao Marcelino
        Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated ๐Ÿ™‚