Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Away, Dashboard problem #123

Open
Jasa1983 opened this issue Oct 28, 2023 · 1 comment
Open

Time Away, Dashboard problem #123

Jasa1983 opened this issue Oct 28, 2023 · 1 comment

Comments

@Jasa1983
Copy link

Hi,

i have follow problem:

Galery my balance is nit working with this code:

"data:image/svg+xml," & EncodeUrl(
"


<circle class='donut-segment' cx='21' cy='21' r='15.91549430918954' fill='transparent' stroke='#d2d3d4' stroke-width='3' stroke-dasharray='" & ThisItem.RequestedTimeOff / ThisItem.'TimeOffType: Allotted Time'.Value * 100 & " " & (100 - ThisItem.RequestedTimeOff / ThisItem.'TimeOffType: Allotted Time'.Value*100) & "' stroke-dashoffset='25'>
"
)
1

@ThomasMichelsen
Copy link

ThomasMichelsen commented Nov 13, 2023

Update:
Getting rid of the error is easy. Just put "" in OnError in the advanced tab of "App" (find it in the top of the "Tree View").
Source: https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-disable-error-message/td-p/1471262

Hi @aprildunnam,

First of all thanks for a super App!

In the comments at Youtube you refer to Git hub for 1:1 comments to issues. I hoped to find a solution to this exact problem. Using commnets I have managed to solve all problemes except this one where there is an error regarding division by zero. I have the following in my image function, which I think looks right.. or am I wrong. Please advice me, so I can fix this.

"data:image/svg+xml," & EncodeUrl( " <circle class='donut-segment' cx='21' cy='21' r='15.91549430918954' fill='transparent' stroke='#d2d3d4' stroke-width='3' stroke-dasharray='" & ThisItem.RequestedTimeOff / ThisItem.'Allotted Time Off' * 100 & " " & (100 - ThisItem.RequestedTimeOff / ThisItem.'Allotted Time Off'*100) & "' stroke-dashoffset='25'> " )

Best regards,
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants