Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Pages
    • Take a guided tour
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • GCC, GCCH, DoD - Federal App Makers (FAM)
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Emergency Response Gallery
    • Events
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Community Engagement
    • Community Calls Conversations
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Canvas Apps Components Samples
    • Re: Circle Progress Bar

    Re: Circle Progress Bar

    04-05-2022 10:02 AM

    cparedes
    Frequent Visitor
    4342 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    R3dKap
    R3dKap Community Champion
    Community Champion
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Circle Progress Bar

    ‎12-30-2019 10:00 AM

    03-may-2022 update: fixed division-by-zero error message showing up from time to times (thanks @cparedes for reporting this)

     

    Hi all,

    Based on @davidni's blog article (available here) I created a configurable Circular Progress Bar component.

    Here is how it looks:

    Image 2.png

    Parameters

    Here are the properties you can set on the component:

    INPUT

    • Max (number) = maximum value (default is 100)
    • Value (number) = actual progress value (default is 50)
    • ShowLabel (boolean) = shows/hides the label in the center (default is True)
    • LabelSize (number) = font size for the label in the center (default is 20)
    • LabelColor (color) = color for the label in the center (default is Black)
    • BarBgR, BarBgG, BarBgB (numbers) = red, green and blue components for the color of the background progress circle (default is the grey color on the capture above)
    • BarR, BarG, BarB (numbers) = red, green and blue components for the color of the actual progress circle (default is the cyan color on the capture above)
    • BarBgWidth (number) = width for the background progress circle
    • BarWidth (number) = width for the actual progress circle
    • LineCapRound (boolean) = if True draws the circle lines with a round line cap, otherwise line cap will be square (default is True)
    • ValueMode (text) = how to display the value within the circle: X/Y or as a percentage value (use the ValueModeEnum output property as an enumeration to set the value)
    • PercentageDecimals (number) = determines how many decimals are shown for the percentage value (only applicable if ValueMode is set to ValueModeEnum.Percentage)

    OUTPUT

    • ValueModeEnum (record) = use this enumeration to set the value of the ValueMode property (MaxValue shows the value as X/Y; Percentage shows the value as a percentage value, using the PercentageDecimals property to set how many decimals should be displayed)

    Feel free to use it... If you have any comments or suggestions, please do not hesitate...

    You will find the component right here:

    https://github.com/e-gallis/PowerApps

    Emmanuel

    CircleProgressBar.msapp
    Labels:
    • Labels:
    • Components
    Message 1 of 7
    13,012 Views
    25 Kudos
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    R3dKap
    R3dKap Community Champion
    Community Champion
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎05-11-2020 07:29 AM

    Hi all,

    Just updated the component to allow two types of display for the value in the center:

    • X/Y (as before)
    • percentage value

    So a new property called ValueMode will allow you to choose between those two modes. To set its value, use the enumeration property called ValueModeEnum like this:

    ValueMode = MyCircleProgressBar.ValueModeEnum.Progress
    -or-
    ValueMode = MyCircleProgressBar.ValueModeEnum.MaxValue

    If you choose the ValueModeEnum.Progress value for ValueMode, just know that the calculation of the current progress value will be automatic based on both the Max and the Value property values.

    Also, using the PercentageDecimals property, you will be able to decide how many decimals should be displayed in case the value is shown as a percentage.

    Message 2 of 7
    10,790 Views
    4 Kudos
    Reply
    schuess3
    schuess3 Kudo Kingpin
    Kudo Kingpin
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎05-15-2020 08:41 AM

    @R3dKap 

    You Rock! Between this one and the fabric UI icons... Thank you!

     

    Btw... any thoughts of changing your fabric UI component into a fluent UI component?

    • Cudos
    Message 3 of 7
    10,754 Views
    2 Kudos
    Reply
    cparedes
    cparedes
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-04-2022 01:13 PM

    I think that the last update of power apps cause the component display and error when the component is load

     

    Invalid operation: division by zero.

    16 KB
    37 KB
    16 KB
    Message 4 of 7
    4,358 Views
    1 Kudo
    Reply
    R3dKap
    R3dKap Community Champion
    Community Champion
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-05-2022 03:58 AM

    Hi @cparedes,

    Mmmm...  I have recently seen this error in other cases as well... It looks like some control property values are populated AFTER the execution of the formulas...

    Since it's a bit hard to reproduce this error on my side, can you edit the component in your app and change these red portions of code:

    R3dKap_2-1649156077688.png

     

    to this:

    R3dKap_1-1649155967047.png

     

    And also change this:

    R3dKap_3-1649156184334.png

     

    to this:

    R3dKap_4-1649156269638.png

     

    If this fixes the issue I will update the component with the fix.

     

    Waiting for your feedback...

    Message 5 of 7
    4,350 Views
    2 Kudos
    Reply
    cparedes
    cparedes
    Frequent Visitor
    In response to R3dKap
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-05-2022 10:02 AM

    Hi @R3dKap 

     

    Thanks for your quickly response.
    Your code Works perfectly!!!

     

    I had already tried to add exactly that part of the code but I needed to validate "IsBlank" because it caused me the same error.

    With the validation "IsBlank" the problem has been solved. Only additional I add in the "If" an "else" to set the value of my variable.

     

    1)

    1.jpg

    2)

    2.jpg

     

    3.jpg

     

    Thanks RedKap!!

     

     

    Message 6 of 7
    4,342 Views
    1 Kudo
    Reply
    R3dKap
    R3dKap Community Champion
    Community Champion
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-06-2022 01:47 AM

    Glad it works now... I'll update the component shortly... 😉

    Message 7 of 7
    4,306 Views
    1 Kudo
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    Browse

    • Sample apps
    • Services

    Downloads

    • Windows
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2023 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    California Consumer Privacy Act (CCPA) Opt-Out Icon Your California Privacy Choices