cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ansa_naz Member
Member

Create a them file to set title font size and colour for all visuals - HOW??

Hi all

 

I want to create a theme file so that it sets the font size and font colour for ALL visual titles, without having to set it individually for each visual type. Is this possible? I cant seem to find any answers online which would show this is possible

 

My current theme file is:

 

{
    "name": "Company Theme",
    "dataColors": ["#48740f", "#6c9a25", "#89bf36", "#aacc66", "#f2b52c" ,"#D79A12", "#bb7711", "#a11919"],
    "background":"#FFFFFF",
    "foreground": "#48740f",
    "tableAccent": "#6c9a25"
}

Any help most appreciated

 

Cheers

2 REPLIES 2
Community Support Team
Community Support Team

Re: Create a them file to set title font size and colour for all visuals - HOW??

@ansa_naz,

 

You may take a look at https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme.

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

Re: Create a them file to set title font size and colour for all visuals - HOW??

Hi, I have used the link provided to try to set up default title and other visual properties. However, the file doesnt import. Any chance there is an issue with the new features added? My new file is:

 

{
    "name": "Company Theme",
    "dataColors": ["#48740f", "#6c9a25", "#89bf36", "#aacc66", "#f2b52c" ,"#D79A12", "#bb7711", "#a11919"],
    "background":"#FFFFFF",
    "foreground": "#48740f",
    "tableAccent": "#6c9a25"
	"visualStyles": {
		"*": {
			"*": {
				"title": [{
					"show": true,
					"fontColor": { "solid": { "color": "##000000" } },
					"background": { "solid": { "color": "#FFFFFF" } },
					"alignment": "left",
					"fontSize": 10,
					"fontFamily": "Segoe UI"
				}],
				"background": [{
					"show": false,
					"color": { "solid": { "color": "#FFFFFF" } },
					"transparency": 50
				}],
				"lockAspect": [{
					"show": false
				}],
				"border": [{
					"show": false,
					"color": { "solid": { "color": "#FFFFFF" } }
				}],
				"visualTooltip": [{
					"type": "Default"
				}],
				"stylePreset": [{
					"name": "None"
				}]
			} 
		}
	}
	"page": {
		"*": {
			"background": [{
				"color": { "solid": { "color": "#FFFFFF" } },
				"transparency": 100
			}],
			"outspace": [{
				"color": { "solid": { "color": "#FFFFFF" } },
				"transparency": 0
			}]
		}
	}
}

Any ideas what the issue may be?

Cheers

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 48 members 884 guests
Please welcome our newest community members: