Forum Discussion

SonaliDhotre's avatar
SonaliDhotre
Icon for Advocate I rankAdvocate I
4 years ago
Solved

Custom Visual - Font size showing in percentage

In Formatting options I am getting the font size as a percentage however I want it to show px(pixel).     Here are the capabilities:   "objects": { "formatOptions": { ...
  • ewaghabi's avatar
    ewaghabi
    4 years ago

    I had the same problem. It turns out the property name has to be EXACTLY "fontSize" for it to work. Like this:

     

                "properties": {
                    "fontSize": {
                        "displayName": "Category Font Size",
                        "type": {
                            "formatting": {
                                "fontSize": true
                            }
                        }
                    },

     

    In your case, the problem is that you would have many "fontSize" properties in the same object group, and this is not possible, so you'll might have to rearrange your options.