deldersveld / powerbi-themetemplates Goto Github PK
View Code? Open in Web Editor NEWSnippets for assembling Power BI Themes
License: The Unlicense
Snippets for assembling Power BI Themes
License: The Unlicense
{
"name": "SlicerTemplate",
"visualStyles": {
"slicer": {
"": {
"general": [{
"outlineColor": { "solid": { "color": "#444444"}},
"outlineWeight": 1,
"orientation": "vertical",
"responsive": true
}],
"data": [{
"mode": "Basic",
"relativeRange": "",
"relativePeriod": ""
}],
"selection": [{
"selectAllCheckboxEnabled": false,
"singleSelect": true
}],
"header": [{
"show": true,
"fontColor": { "solid": { "color": "#000000"}},
"background": { "solid": { "color": ""}},
"outline": "None",
"textSize": 10,
"fontFamily": "Segoe UI"
}],
"items": [{
"fontColor": { "solid": { "color": "#ffffff"}},
"background": { "solid": { "color": ""}},
"outline": "None",
"textSize": 11,
"fontFamily": "Segoe UI"
}],
"slider": [{
"color": {"solid": { "color": "#006193"} }
}]
}
},
"TextBox": {
"": {
"": [{
"fontSize": 40,
"fontFamily": "Calibri",
"wordWrap": true,
"color": { "solid": { "color": "#FFFFFF"} }
}],
"background": [{
"show": true,
"color": { "solid": { "color": "#a61520"}},
"transparency": 0
}],
"visualHeader": [{
"show": true
}]
}
},
"basicShape": {
"": {
"line": [{
"lineColor": { "solid": { "color": "#01B8AA"}},
"transparency": 0,
"weight": 3,
"roundEdge": 0
}],
"fill": [{
"show": true,
"fillColor": { "solid": { "color": "#DDDDDD"}},
"transparency": 0
}],
"rotation": [{
"angle": 0
}],
"visualHeader": [{
"show": false
}]
}
}
}
}
I'm not sure if this is a missing setting or missing configurability on the Power BI product side.
Currently, the background color for a slicer search box is always "white" (#ffffff) and the search box text color appears to be pulled from the top-level theme "foreground" setting - which for a dark mode is likely also "white". The result is a white-on-white search box that isn't readable - and worse, if typed in by the user creates an invisible filter against the slicer's context.
The only workaround I have found is to completely disable search boxes in slicers and then hope the user does not re-enable them. This is especially painful for "dark mode" themes (my use case) but it may be affecting others as well.
Any assist or workaround would be greatly appreciated. Thanks!
Find this value
Hello,
thank you so much for this example repository. It is so much better, than the official Microsoft documentation and saved me a lot of frustration.
The only thing I could not find in here were the granular settings for the visual header, so I analyzed the Power BI Service and found these settings. Maybe you can add them somewhere around here?
This is what I found out (see below). I did use the "background" part, as well as the "showFilterRestatementButton", which is basically the Filter Icon. I also used "showDrillToggleButton", which is the icon that enables drill down on double click. I hope it will help others.
"visualHeader": [
{
"show": true,
"background": {
"solid": {
"color": "#0081C7"
}
},
"foreground": {
"solid": {
"color": "#558100"
}
},
"transparency": 50,
"showCommentButton": true,
"showCopyVisualImageButton": true,
"showDrillDownExpandButton": true,
"showDrillDownLevelButton": true,
"showDrillRoleSelector": true,
"showDrillToggleButton": true,
"showDrillUpButton": true,
"showFilterRestatementButton": true,
"showFocusModeButton": true,
"showOptionsMenu": true,
"showPersonalizeVisualButton": true,
"showPinButton": true,
"showSeeDataLayoutToggleButton": true,
"showVisualErrorButton": true,
"showVisualHeaderTooltip": false,
"showVisualInformationButton": true,
"showVisualWarningButton": true
}
]
Have you discovered a way to set these by default?
kpiFormat is mentioned under Indicator in documentation but option does not appear in UI
visualType: "keyDriversVisual"
visualType: "esriVisual"
hi
how change layout power bi report server web?
Find correct property name for Spacing on the Ribbon chart.
Figure out how this actually works to get thousands, etc.
Something seems to be off; no matter where the background card is set it has no effect on any visual. Is there an example that shows the background color being set for a table, a stacked bar, or globally across visuals?
Overall this is a fantastic resource, thanks for making it available!
Hi. I have tried this json and a custom one over different reports and workspaces. The thing is that the shadow of the visualizations only change in power bi desktop. After you publish them to Service, the reports won't have any shadow at all. Do you know something about it?
There is not option to select the color of the card's background?
Thank you
Does anyone know how to set "Shadow position" to "Inside" within a json script? No matter what I declare it always turns to "Outside"
Power BI has recently added theme settings for the filter pane, which were not previously covered in this repo snippets. Although all themes could benefit from formatting the filter pane, it is a significant issue for any dark theme - since the default view of active filter cards creates a dark-text-on-dark-background which is not readable without modifying the filter pane settings.
I have created PR #16 which resolves this issue.
Does anybody know what the property for pivottables - Column Headers - title allignment is?
visualType: "azureMap"
Current Shape Theme visualStyle is 'basicShape', other visualStyle values seen include 'shape'
Hi,
I am trying to get the color for slider .
Can you help me with the json theme for slider?
Research options under Data Colors for Filled Map
Cannot be tested during preview, current visualType is "PowerApps_PBI_CV_**********"
Determine if there is a way to automatically enable Search in the Slicer
I need help to format the visual headers for slicers in my JSON theme; I need them to default to off but only for slicers.
The shapeMap doesn't seem to work. Is it outdated?
I would like to see values to force the 'minimum' and 'maximum' colours
Hi,
Json theme for shape is not working. Can you please update the code or provide me a fix for it?
Would be great to be able to change the default colors that appear on the Power BI desktop color palette selection.
Smart Narrative visuals are an extension of the Textbox visual type, and further research is needed to see how they will integrate with themes.
visualType: "qnaVisual"
In PBI Desktop we can choose different styles for a table.
Do you have any idea what are the enumerator values in json for these styles.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.