cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
QuinnP Frequent Visitor
Frequent Visitor

Graph horizontal gridlines in JSON theme file.

Hey all,

 

Quick question: does anyone know if there's a field for formatting the horizontal gridlines on visuals like column charts and area charts within the JSON theme syntax? The only grid options I've found have been in relation to tables/matrices and haven't carried over to charts. This update which said 'With this month’s update, all visual properties can be formatted through theming, with the exception of properties that require data in advanced' makes me think that there must be a property somewhere that I can't find!

Cheers,

 

Quinn

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Graph horizontal gridlines in JSON theme file.

HI @QuinnP ,

I create a custom theme with 'gridline' settings on visuals which you mentioned and import to power bi, but it seems not enabled correctly.

{
   "name":"My Theme",
   "visualStyles":{
      "*":{
         "*":{
            "*":[
               {
                  "color":{
                     "solid":{

                     }
                  }
               }
            ]
         }
      },
      "columnChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "clusteredColumnChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "AreaChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "stackedAreaChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      }
   }
}

I guess these properties haven't released so that power bi not allow you to modify them based on theme settings.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Graph horizontal gridlines in JSON theme file.

HI @QuinnP ,

I create a custom theme with 'gridline' settings on visuals which you mentioned and import to power bi, but it seems not enabled correctly.

{
   "name":"My Theme",
   "visualStyles":{
      "*":{
         "*":{
            "*":[
               {
                  "color":{
                     "solid":{

                     }
                  }
               }
            ]
         }
      },
      "columnChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "clusteredColumnChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "AreaChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "stackedAreaChart":{
         "*":{
            "categoryAxis":[
               {
                  "show":true,
                  "gridlineStyle":"dotted",
                  "labelColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      }
   }
}

I guess these properties haven't released so that power bi not allow you to modify them based on theme settings.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 362 members 3,103 guests
Please welcome our newest community members: