Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Card (new) - Problem with custom theme json

Hi,

I tried so setup my default setitngs for card (new) visual, I'm able to do most of the things I wanted to setup however I found a problem.

I want to setup default font for referenceLabelValue and referenceLabelDetail like this:

{
  "name": "My New Theme1",
  "visualStyles": {
    "cardVisual": {
      "*": {
        "referenceLabelValue": [
          {
            "$id": "default",
            "show": true,
            "valueFontFamily": "DIN"
          }
        ],
        "referenceLabelDetail": [
          {
            "$id": "default",
            "show": true,
            "detailFontFamily": "DIN"
          }
        ]
      }
    }
  }
}

but for some reason power bi won't read it properly. It loads DIN value for both properties however it sees it as a font that is not "available" and displays it differently and it's not selected (grayed out) on the list as it should be.
Is it because theme is loaded first then power bi loads available fonts for the visual when by default property is disabled? In this case user has to add reference labels and referance labels details before he can change font and since it was done other way around it's like this?

IP_Kornel_0-1743080133993.png

After manual selection

IP_Kornel_1-1743080372121.png

You should clrealy see the difference.

In my opinion it should read that property's value correctly once reference label and details are added.

Status: New