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 / SVG Image change prope...
Power Apps
Unanswered

SVG Image change properties

(0) ShareShare
ReportReport
Posted on by 3,271

Hi there.

I have been trying to use this SVG image loader :

sajarac_0-1666981725078.png

 

But for some reason I can not get this thing bigger or make the width or high adjustable to the image "Width and Height" selected.

 

The code that I am using is:

 

"data&colon;image/svg+xml,"&EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 60 30' filter='drop-shadow(3px 5px 4px rgb(0 0 0 / "&If(Com_ProgressBar.BoxShadow= true ,0.5,0.0)&"))'>

<defs>
<linearGradient id='linear' x1='80%' y1='22%' x2='6%' y2='4%' spreadMethod='pad'>
<stop offset='0%' stop-color='"&Com_ProgressBar.LinealGradientHexValue1&"'/>
<stop offset='65%' stop-color='"&Com_ProgressBar.LinealGradientHexValue2&"'/>
</linearGradient>
</defs>


<rect x='1' y='1' width='50' height='8' rx='"&Com_ProgressBar.BorderRadius&"'

fill='#9f9f9f' />

<rect x='1' y='1' width='"&(Com_ProgressBar.Value/Com_ProgressBar.MaxValue)*50&"' height='8' rx='"&Com_ProgressBar.BorderRadius&"'

fill='url(#linear)' stroke-dasharray='"&(Com_ProgressBar.Value/Com_ProgressBar.MaxValue)*50&", 500'
>

<animate attributeName='width' values='0;"&(Com_ProgressBar.Value/Com_ProgressBar.MaxValue)*50&"'
dur='1s' repeatCount='1' />


</rect>

 

</svg>

")

 

Where:

 

sajarac_1-1666981843177.png

And this is how it looks like :

 

sajarac_2-1666981917823.png

 

Thanks in advance for any help

 

Regards

Categories:
I have the same question (0)

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard