web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Processing Bar or Slid...
Power Apps
Unanswered

Processing Bar or Slides (Modern)

(0) ShareShare
ReportReport
Posted on by 438

I’m trying to design something similar to a Processing Bar or Slides, aiming for a curved bar. Here’s a screenshot to illustrate the desired appearance I’m working towards. Let me know, and thank you!

 

If you know how to make a curved bar, really appreciate it. 🙂

 

IMG_9125.jpeg

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    I've done something similar to that using SVG.  Here's a screenshot.

    image.png

    in my case it mimics the progress of the slider, but you could change the code to use specific numbers.  Heres the code for the SVG image.

    "data:image/svg+xml," & EncodeUrl(
     "<svg xmlns='http://www.w3.org/2000/svg' width='100px' height='100px'>" & "<path fill='none' style='stroke-width:18;stroke:rgb(230,230,230);stroke-linecap:round;' d='" & "M " & Text(50 - 40*Sin(Pi() / 4)) & " " & Text(50 + 40 * Cos(Pi() / 4)) & " A " & "40 40 0 1 1 " & Text(50 - 40*Sin(2 * Pi() - Pi()/4)) & " " & Text(50 + 40 * Cos(2 * Pi() - Pi()/4)) & "'>" & "</path>" & "<path fill='none' style='stroke-width:18;stroke:rgb(69,204,206);stroke-linecap:round;' d='" & "M " & Text(50 - 40*Sin(Pi() / 4)) & " " & Text(50 + 40 * Cos(Pi() / 4)) & " A " & "40 40 0 " & If(
     Slider1.Value / Slider1.Max > Pi() / (2 * (Pi() - Pi()/4)),
     "1",
     "0"
     ) & " 1 " & Text(50 - 40*Sin(Pi() / 4 + 2 * (Pi() - Pi()/4) * Slider1.Value / Slider1.Max)) & " " & Text(50 + 40 * Cos(Pi() / 4 + 2 * (Pi() - Pi()/4) * Slider1.Value / Slider1.Max)) & "'>" & "</path>" & "</svg>"
    )

     

  • dylandavis09 Profile Picture
    438 on at

    @Pstork1,Thank you for guiding me through this process; I really appreciate it! While I was copy-pasting, I noticed an error with the slider. I am considering avoiding the use of sliders, but let me show you what it looks like with an example use SharePoint data.

    Screenshot 2024-01-01 at 10.50.25 PM.png


  • dylandavis09 Profile Picture
    438 on at

    @Pstork1, hello, I just wanted to follow up with you since I haven't heard from you. 🙂 

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Sorry for not responding. Did you have a further question? It looked like you got it working the way you wanted it.  What issue were you still having?

  • dylandavis09 Profile Picture
    438 on at

    @Pstork1, that's fine. There it's worked, not there no show. Let me screenshot for you. 🙂

    Screenshot 2024-01-05 at 12.59.02 PM.png

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Sorry, I'm still not following. Are you saying the code isn't working in your application?  I'll try to help if you can tell me what the issue is that you are having.  Its not clear from the screenshot what the problem is.

  • dylandavis09 Profile Picture
    438 on at

    Okay, when I copy and paste the code from you, I put it in an Image with code. After that, I add Slider1 to match the code you provided. There's no red error message showing up, but it's still blank; there's no curved bar showing in the data.

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Its been a while since I looked at that. Let me take a look and see what else needs to be in place for it to work.

  • dylandavis09 Profile Picture
    438 on at

    Thank you! 

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    I tried pasting in the code I posted and had the same problem you are having. But I don't see any difference between that and the code I have in my original.  I tried copying and pasting the code after removing the formatting and that worked.  So try this version of the code and see if it shows up.

    "data&colon;image/svg+xml,"&EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='100px' height='100px'>"&"<path fill='none' style='stroke-width:18;stroke:rgb(230,230,230);stroke-linecap:round;' d='"&"M "&Text(50-40*Sin(Pi()/4))&" "&Text(50+40*Cos(Pi()/4))&" A "&"40 40 0 1 1 "&Text(50-40*Sin(2*Pi()-Pi()/4))&" "&Text(50+40*Cos(2*Pi()-Pi()/4))&"'>"&"</path>"&"<path fill='none' style='stroke-width:18;stroke:rgb(255,0,0);stroke-linecap:round;' d='"&"M "&Text(50-40*Sin(Pi()/4))&" "&Text(50+40*Cos(Pi()/4))&" A "&"40 40 0 "&If(Slider1.Value/Slider1.Max>Pi()/(2*(Pi()-Pi()/4)),"1","0")&" 1 "&Text(50-40*Sin(Pi()/4+2*(Pi()-Pi()/4)*Slider1.Value/Slider1.Max))&" "&Text(50+40*Cos(Pi()/4+2*(Pi()-Pi()/4)*Slider1.Value/Slider1.Max))&"'>"&"</path>"&"</svg>")

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard