Code Monkey home page Code Monkey logo

powerbi-themetemplates's Introduction

Power BI Theme Templates

Snippets for assembling Power BI Themes

Get them here or view the visual list below

  • Are you working with Themes in Power BI but confused about the visual formatting options (visualStyles)?
  • Have you struggled while trying to make sense of the Power BI report themes documentation?
  • Do you like JSON?
  • Do you like sample code?
  • Do you like other people doing most of the labor for you?

If you answered "Yes" to any of the questions above, this repo is for YOU!

Sample Power BI Shape Template

Changing colors in Power BI themes is fairly straightforward. For formatting, the wildcard(*) to make universal changes is convenient. If you want to go deeper into individual visual properties, however, it can quickly get confusing. With these sample templates, explore the individual properties available to each visual (as well as shapes and images). Combine the per-visual templates as needed, alter the values to correspond to your own needs, and build your own Power BI theme.

The purpose of this repository is to provide detail-level reference for each native visual in its own separate file. Look at the format options for a visual in Power BI Desktop and compare to the JSON options side by side. Copy and paste what you need from each visual's JSON to assemble a master Theme file.

Please note that the values in these sample files will appear ugly. Many values are not Power BI's defaults. As soon as something worked, I moved on to the next property. Please modify or remove properties in your own theme file to be what you desire.

Global Level Template

Adjust titles, backgrounds, report page tooltips, wallpaper, and more for some or all visuals on a page or all pages.

Available Visuals

powerbi-themetemplates's People

Contributors

7samat avatar aaronsteers avatar deldersveld avatar easynoise avatar igorya76 avatar kevinzous avatar lavinavrovine avatar mattrudy avatar mikecarlo avatar nexus150 avatar nghtchld avatar rafaelmpsantos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerbi-themetemplates's Issues

Visual Header Defaults in JSON

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.

Shadow definitions

Does anyone know how to set "Shadow position" to "Inside" within a json script? No matter what I declare it always turns to "Outside"

Settings for visual header

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
        }
    ]

not working

The shapeMap doesn't seem to work. Is it outdated?
I would like to see values to force the 'minimum' and 'maximum' colours

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

{
"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
}]
}
}
}
}

dropShadow won't be applied in power bi service

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?

Slicers - Missing theme setting for search box background

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!

set KPI goal text color with JSON theme

I am trying to set the font color for the text in the Goals section of the KPI visual.
image

I am struggling because I can;'t figure out how the property is called: I tried fontColor, color, labelColor to no avail.
Is it documented anywhere?

Thanks

Slicer theme

Hi,
I am trying to get the color for slider .
Can you help me with the json theme for slider?

Global background

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!

KPI - kpiFormat

kpiFormat is mentioned under Indicator in documentation but option does not appear in UI

Theme for shape

Hi,
Json theme for shape is not working. Can you please update the code or provide me a fix for it?

Matrix

Does anybody know what the property for pivottables - Column Headers - title allignment is?

Missing filter pane settings cause problems for "dark mode" themes

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.

TableEx, Options for Styles

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.