cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
po
Post Prodigy
Post Prodigy

.json and custom visuals with power bi theme possible?

Hi,

 

We have a .json theme file and can customise vast majority of properties of visuals which ship with power bi o.k e.g. background.

 

However, when try and set the propertries of a custom visual such as advance card as per below - no impact .eg. background property unchanged when import theme file unlike other visuals which change the background as expected.

 

Does anyone know if possible to use custom visuals in the .json theme file or not?

 

Just wondering if  possible to use custom visuals in the .json theme file? 

 

 

 

"advanceCard": {
"*": {
"labels": [{
"color": { "solid": { "color": "#063d73"}},
"fontSize": 14
}],
"background": [{

"show": true,
"transparency": 70,
"color": { "solid": { "color": "#Febe10" } }

}]
}
}

2 ACCEPTED SOLUTIONS
v-viig
Community Champion
Community Champion

Yes, it's possible. Please use advanceCardE03760C5AB684758B56AA29F9E6C257B instead of advanceCard

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

v-viig
Community Champion
Community Champion

Conditional colors are not supported for Power BI themes.

 

Hierarchy Slicer is: HierarchySlicer1458836712039

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

15 REPLIES 15
v-viig
Community Champion
Community Champion

Yes, it's possible. Please use advanceCardE03760C5AB684758B56AA29F9E6C257B instead of advanceCard

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

Anonymous
Not applicable

How did you find this out?

v-viig
Community Champion
Community Champion

@Anonymous What are you asking about?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Anonymous
Not applicable

Sorry, I was talking about this statement:

 

"Yes, it's possible. Please use advanceCardE03760C5AB684758B56AA29F9E6C257B instead of advanceCard"

 

I was wondering how you determined that was the property name for this visual. It isn't working for me. I'm trying to set the fontFamily for the Advance Card custom visual...

I found a workaround to get the name of the custom visual so you can use it on your json file

Go to the markerplace on your browser and search for the visual:
https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals

Download the .pbiviz file and open it on your code editor or wordpad.
Line 13 has the several names you'll want to use on your .json; its usually either "name" or "guid".
Line 23 has all the visuals' elements you'll want to customize on your .json.

.pbiviz of visual.pbiviz of visual

Hope this helps

v-viig
Community Champion
Community Champion

Does this visual have Font Family in the formatting panel?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Anonymous
Not applicable

Yes. You mean in the visualization properties under Visualization > Format? 

v-viig
Community Champion
Community Champion

If there's a Font Family option we suggest to ask developer to configure a theme file properly.

Please email bhaveshhjadav@gmail.com

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

po
Post Prodigy
Post Prodigy

Hi,

 

Thanks for answer.

 

Do you know if possible to set the colour of the conditions within this visual?

 

e.g would like to use if value = -1 then "#.....'

                                  if value = 0 then "#...'

                                  if value = 1  then '#..'

to colour code values shown our colour of green amber red rather than set manually?

                                         

Also is there some documentation anywhere which says the name of custom visuals to use?

 

We also use hierarchical slicer which I'm guessing may have name which not sure of for the local .json

 

Do you know name to use for this one? 

 

Thanks again.

 

 

v-viig
Community Champion
Community Champion

Conditional colors are not supported for Power BI themes.

 

Hierarchy Slicer is: HierarchySlicer1458836712039

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

po
Post Prodigy
Post Prodigy

Thanks for update and confirming about conditioanl colours.

 

Is there a list somewhere to find any time custom added to download area used what the relevant name to use is?

v-viig
Community Champion
Community Champion

Do you mean name of properties to change color?

 

If so, it depends on particular custom visual. Please ask author to share proper names.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

po
Post Prodigy
Post Prodigy

Thanks for reply.

 

Meaning the name of the actual visual itself to use in the .json

 

e.g the custom ones seem to be suffixed with large numbers

 

Is there a list of the microsoft ones or somwhere can find the name to use in the .json as and when microsoft publish new custom visuals? 

 

e.g chiclet slicer one just started to use but not sure where could fin the number to suffix with this to set properties such as background colour vi athe .json.

 

v-viig
Community Champion
Community Champion

We do not have documentation for this yet. It's on backlog.

 

For Chiclet Slicer you find name in the code on GitHub.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

po
Post Prodigy
Post Prodigy

Thanks for update.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors
Top Kudoed Authors