cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
chethan
Resolver III
Resolver III

Custom report theme to control the default

Hi,

 

 

I have created the custom report themes in JSON but am unable define the control in JSON please help me

 

Below is the JSON code which is using now

{
    "name": "C1",
    "dataColors": ["#F17925","#004753","#CCAA14","#4B4C4E","#D82C20","#A3D0D4","#536F18","#46ABB0"],
    "background":"#FFFFFF",
    "foreground": "#004753",
    "tableAccent": "#F17925",
	"visualStyles":{
        "*":{
            "*":{
                "*":[{
                    "responsive":true,
				    "wordWrap":true,
                    "fontSize":11
                }],
			    "wordWrap":[{
				    "show":true
                }],
                "labels":[{
                    "show":true,
                    "labelOrientation":"vertical",
					"labelPosition":"InsideEnd"
                }],
                "categoryAxis":[{
                    "showAxisTitle":true,
					"Gridlines":false
                }],
                "valueAxis":[{
                    "showAxisTitle":true,
					"Gridlines":false
                }]
		    }
	    },
	    "scatterChart":{
		    "*":{
			    "fillPoint":[{
				    "show":true
				}]
		    }
	    },
        "card":{
            "*":{
                "labels":[{
                    "fontSize":27
                }],
                "categoryLabels":[{
                    "fontSize":12
                }]
            }
        },
        "lineChart":{
            "*":{
                "legend":[{
                    "legendMarkerRendering":"lineAndMarker"
                }] 
            }
        },
        "donutChart":{
            "*":{
                "legend":[{
                    "show":true
                }],
                "labels":[{
                    "labelStyle": "Percent of total"
                }]
            }
        },
        "pieChart":{
            "*":{
                "legend":[{
                    "show":true
                }],
                "labels":[{
                    "labelStyle": "Percent of total"
                }]
            }
        }
    }
 }

 

Untitled.png

 

 

 

Regards,

Chetan K

1 ACCEPTED SOLUTION

As per new update, we can modify the Report theme from JSON file format

 

 

Below Link

 https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-report-themes/

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @chethan,


I don't think you can modify the visual style setting in theme, theme file only used to modify the theme and visual default color.

 

Reference link:

Create custom color themes - Power BI Tips & Tricks #34

Color Theme Generator

 

In addition, if you want to modify the default style of visuals, you should write custom visuals with default styles and import to power bi.

 

Regards,

Xiaoxin Sheng

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

As per new update, we can modify the Report theme from JSON file format

 

 

Below Link

 https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-report-themes/

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors