mattrudy / powerbi-themetemplates Goto Github PK
View Code? Open in Web Editor NEWJSON Templates for assembling Power BI Themes
License: The Unlicense
JSON Templates for assembling Power BI Themes
License: The Unlicense
There are 4 primary level text classes that control fonts used throughout almost every visual (edge cases still exist). These should be added to the global-level template.
More reading can be done here: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#setting-formatted-text-defaults
Source: Cloned from Issue 37 in original repository.
Have you discovered a way to set these by default?
Source: Cloned from Issue 62 in original repository.
Button visual needs 'General' properties section and most others
Source: Cloned from Issue 46 in original repository.
Filled Map is missing 'General' properties section
Source: Cloned from Issue 42 in original repository.
Pie Chart is missing 'General' properties section
Source: Cloned from Issue 58 in original repository.
visualType: "keyDriversVisual"
I was trying to set the column headers in a table as Segoe UI Bold. Surprisingly, everything Segoe works, except for Segoe UI Bold. It turns out, if you want to set Segoe UI Bold, you have to use the font family as following:
"fontFamily": "wf_segoe-ui_bold"
Source: Cloned from Issue 55 in original repository.
Shape Map needs 'General' properties section
It's straightforward to compare JSONs to a sample schema and ensure they meet a minimum standard of a test schema.
A valid, but manual version of this as a github action is implemented in https://github.com/MattRudy/PowerBIThemeSolutions
I've reached out to @nhalstead about the action below to understand if his method can handle wildcards as this would be a big QOL improvement for this repo.
https://github.com/nhalstead/validate-json-action
Source: Cloned from Issue 10 created by @KDIXN in original repository.
The shapeMap doesn't seem to work. Is it outdated?
I would like to see values to force the 'minimum' and 'maximum' colours
Source: Cloned from Issue 64 in original repository.
Image needs 'General' property section and most others
Source: Cloned from Issue 68 in original repository.
It shall probably be possible to configure the outline for all the States: Default state, On hover, on press, Disabled
Source: Cloned from Issue 63 in original repository.
Current Shape Theme visualStyle is 'basicShape', other visualStyle values seen include 'shape'
Follow-up from jujiro:
I played around with Shape JSON. It worked only when I renamed "basicShape" to "shape". I also noticed that the shape JSON was unable to set the line thickness (weight) and the color. Since the line weight is adjusted in the outline section, perhaps a new section needs to be added to this JSON. I tried various names, to no avail.
Source: Cloned from Issue 32 in original repository.
I am trying to merge Slicer, text box and shape codes together but only first code works and other two does not make any changes when I apply them. Also I get a message of success every time I apply. Can anyone help what I missing here
Source: Cloned from Issue 51 in original repository.
Smart Narrative visuals are an extension of the Textbox visual type, and further research is needed to see how they will integrate with themes.
Source: Cloned from Issue 2 in original repository.
Find this value
Source: Cloned from Issue 1 in original repository.
kpiFormat is mentioned under Indicator in documentation but option does not appear in UI
Source: Cloned from Issue 49 in original repository.
Multi-Row Card is missing 'General' properties section
Source: Cloned from Issue 4 in original repository.
Figure out how this actually works to get thousands, etc.
Source: Cloned from Issue 21 in original repository.
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
}
]
Source: Cloned from Issue 44 in original repository.
Treemap is missing 'General' properties section
Links still point to the original files.
Source: Cloned from Issue 3 in original repository.
Find correct property name for Spacing on the Ribbon chart.
Source: Cloned from Issue 61 in original repository.
Cannot be tested during preview, current visualType is "PowerApps_PBI_CV_**********"
Source: Cloned from Issue 56 in original repository.
Azure Map visual needs to be added
Source: Cloned from Issue 60 in original repository.
visualType: "qnaVisual"
Source: Cloned from Issue 48 in original repository.
Card is missing 'General' properties section
Source: Cloned from Issue 5 in original repository.
Determine if there is a way to automatically enable Search in the Slicer
Source: Cloned from Issue 40 in original repository.
All Measures are missing 'Maintain Layer Order' setting
Source: Cloned from Issue 31 in original repository.
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?
Source: Cloned from Issue 52 in original repository.
Table is missing 'General' properties section
Source: Cloned from Issue 59 in original repository.
Decomposition Tree needs 'General' properties section
Source: Cloned from Issue 66 in original repository.
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.
Source: Cloned from Issue 6 in original repository.
Research options under Data Colors for Filled Map
Source: Cloned from Issue 45 in original repository.
Map is missing 'General' properties section
Source: Cloned from Issue 24 in original repository.
Hi,
Json theme for shape is not working. Can you please update the code or provide me a fix for it?
Source: Cloned from Issue 57 in original repository.
KPI Visual needs 'General' properties section
Source: Cloned from Issue 43 in original repository.
Donut Chart is missing 'General' properties section
Source: Cloned from Issue 41 in original repository.
Funnel Chart is missing 'General' properties section
Global colors can be set in 3 ways:
Data Colors - the color palette that will be available and used by default for all visuals
Other Theme Colors - the colors that will be used to express data states across your reports, including:
Structural Colors - the colors that will affect all other visual elements like labels, gridlines, outlines, backgrounds, etc., including:
More reading can be done here:
Data Colors and Theme Colors: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#setting-theme-colors
Structural Colors: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#setting-structural-colors
In the valueAxis section of the Stacked Column visual, the "color" property should be changed to "titleColor".
As an aside: thank you for creating a fork of this repository! You're the best.
Source: Cloned from Issue 54 in original repository.
visualType: "esriVisual"
Source: Modified from Issue 22 in original repository.
Would be great to be able to change the default colors that appear on the Power BI desktop color palette selection.
Response by @glitteryqueen:
You can easily do that either by entering the Theme section on your Power BI or with a JSON like:
{
"name": "newcolors,
"dataColors": ["#74b9ff", "#0984e3", "#fd79a8", "#fab1a0", "#fdcb6e", "#d63031", "#2d3436", "#55efc4"],
"background":"#FFFFFF",
"foreground": "#747480",
"tableAccent": "#FFFFFF"
}
You just set up 8 different colors for your data set, and the background, foreground and table accent.
Source: Cloned from Issue 50 in original repository.
Textbox is missing 'General' properties section
Source: Cloned from Issue 53 in original repository.
Pivot Table is missing 'General' properties section
This is disabled for most users but Admins can still do this. All commits should be made in branches and require a PR for traceability.
Source: Cloned from Issue 29 in original repository.
hi
how change layout power bi report server web?
Source: Cloned from Issue 18 created by @aaronsteers in the original repository.
Part 1
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!
Part 2
Related: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/38574625-enable-setting-the-background-of-search-box-in-sli
Part 3
Temporary workaround is to use a non-white color (blue in the below example) for the "label" text class.
Example:
{
"name": "sample theme snippet",
"textClasses": {
"label": {
"fontSize": 12,
"fontFace": "Segoe UI",
"color": "#c2d8fe"
}
}
}
Part 4
Update: When setting the "label" text class, this also overrides the default text box color - which also appears to not be independently configurable. It would therefor be helpful to know if there's also a way to override the default font color for text boxes. (The repo here shows a sample to override the background color but not the default text color for text boxes.)
Source: Cloned from Issue 47 in original repository.
Gauge is missing 'General' properties section
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.