PowerBI-tips / tools

General Repo for tracking features, issues and bugs related to the tools developed by PowerBI.tips
3 stars 0 forks source link

Bug - Duplicate Sub-Property under same Main Property #7

Closed pugliathomas closed 1 year ago

pugliathomas commented 1 year ago

Some of the Global level fields within a Property are duplicated name,s but the export provides different names, and they go to different parts of the theme.

Example: Tooltip Property Global

Duplicates Background Color, Label, and Text Color. Clearly some of these belong tooltips when you hover over a datapoint, but the some of those sub-properties do not seem to apply to this property.

The second duplicated property is the one binded to visual tooltips (see image) and the json correct for is the following property:

This is under Themes UI property "Tooltip" in Global:

 "visualTooltip": [
    // Correct Binding
       "themedBackground": // Background of tooltip
       "themedValueFontColor": // Value of font color
       "themedTitleFontColor": // Label Color
    // Incorrect Binding
     "titleFontColor":
     "valueFontColor": 
     "themedBackground":

Also, there is another Global Property named "Visual Header tooltip" in the Themes UI, which seems to have the same exact sub-properties as "toolTip". This is also duplicated with colors. For Visual Headers Tooltip, the second duplciated property is tied to the Help Tooltip only.

// Correct Binding for Help Tooltip: 
"visualHeaderTooltip": [
          {
            "themedBackground":
            "themedTitleFontColor":

When I export the following config, the JSON below is what i get:

image

   "visualTooltip": [
          {
            "background": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 11,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "themedBackground": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 5,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "show": true,
            "type": "Default",
            "themedValueFontColor": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 1,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "valueFontColor": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 11,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "themedTitleFontColor": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 1,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "titleFontColor": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 11,
                      "Percent": 0
                    }
                  }
                }
              }
            }
          }
        ],
        "visualHeaderTooltip": [
          {
            "themedBackground": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 9,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "titleFontColor": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 7,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "background": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 11,
                      "Percent": 0
                    }
                  }
                }
              }
            },
            "themedTitleFontColor": {
              "solid": {
                "color": {
                  "expr": {
                    "ThemeDataColor": {
                      "ColorId": 9,
                      "Percent": 0.6
                    }
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
}
MikeCarlo commented 1 year ago

this is using the spec that microsoft provides there is no ability to change this.