Donut ring (SVG) for Power Apps canvas apps
A ring for one value from 0 to 100, drawn as SVG in an Image control. It covers progress and share without a chart control.
Requirements
- License: Standard. No premium connector, no PCF, no environment setting.
- Power Apps Studio with modern controls enabled in the app settings
- A canvas app or a component library
Properties
| Property | Type | Notes |
|---|---|---|
Percent | Number | 0 to 100 |
CenterText | Text | Empty shows the rounded percent |
Caption | Text | Small line below the center text |
BarColor, TrackColor | Text | Hex colors, because SVG cannot read a Color value |
Thickness | Number | Percent of the diameter, 2 to 30 |
Download
donut-ring.zip holds the component, a demo screen, the property list and the MIT license. The same files one by one:
DonutRing.pa.yaml, the component definitionDemoDonutRing.pa.yaml, a demo screen with sample dataREADME.md, properties, setup and limitsLICENSE.txt, the MIT license
Setup
- Open your canvas app (or component library) in Power Apps Studio.
- Create a component named DonutRing and paste the content of DonutRing.pa.yaml from the download above.
- Insert an instance on a screen and set its input properties, using the demo screen as a guide.
- Resize the instance with its Width and Height.
Known limits
- One value per ring. For several segments use more rings or a chart control.
- Colors must be hex text.
License
MIT, copyright Marcel Lehmann. Use it in private and commercial apps and change it. Keep the license text with the files you pass on, an attribution inside the app is not needed. See LICENSE.txt.