Forum Discussion
Custom Visual - Font size showing in percentage
- 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.
Thank you so much for responding. I have added the capabilities you have mentioned in the first half of the solution. I have added the capabilities in the description above. I am fine with having pt instead of px. But I am getting %. I am willing to go with the first solution you have mensioned. Can you please tell me what I am doing wrong?
It's hard to help further without seeing your visual project; your capabilities.json file as a bare-minumum. Are you able to share this at all?
Also, please confirm the version of the API you're using and the SDK version (powerbi-visuals-tools).