Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello there,
I want to show up down arrow for numeric field in custom visual just like we have for font-size. I am using following syntax for numeric field
"decimalPlaces": { "displayName": "Value Decimal Places", "type": { "numeric": true } }
Which produces following results.
It would be better if we can show arrows for quick value changes. How do I add arrows to this field?
Solved! Go to Solution.
This is a full list of properties that I know about:
weight
angle
textSize
fontSize
titleFontSize
secFontSize
secTitleFontSize
outlineWeight
gridVerticalWeight
gridHorizontalWeight
barWeight
rowPadding
cardPadding
imageHeight
steppedLayoutIndentation
borderThickness
preferredCategoryWidth
strokeWidth
gridlineThickness
markerSize
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
You may try type enumeration.
Power BI has a few hard coded property names that will force PBI to show arrows.
What value range are you instrested in? If there's no specific value range we would recommend to keep it as it.
PBI users actually can use Keyboard Arrows to increase/decrease values.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
It is really convenient to click on arrows to adjust the number. Default Power BI visual shows arrows for numeric inputs so I thought end user would expect similar thing in custom visual.
Also how do I set range for numeric input? Is there a way to do it in capabilities.json file or do I have to manage it in the code?
What default vsiuals are you talking about?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
As mentioned above, Power BI uses special types and hard coded name for such case.
If you wanted to show box with arrow to stroke width you should call your property as: strokeWidth
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
@v-viig Now I understand that I have to used predefined properties name in order to get that arrows and there is no other way as of now. Can you please provide if possible the list of all predefined proerties such as strokeWidth which I can use to get desired settings?
This is a full list of properties that I know about:
weight
angle
textSize
fontSize
titleFontSize
secFontSize
secTitleFontSize
outlineWeight
gridVerticalWeight
gridHorizontalWeight
barWeight
rowPadding
cardPadding
imageHeight
steppedLayoutIndentation
borderThickness
preferredCategoryWidth
strokeWidth
gridlineThickness
markerSize
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thank you Ignat for the list.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |