pie chart in pop-ups, when 100% show as 50% symbology

1052
2
Jump to solution
09-27-2018 02:43 PM
AmyGwin2
New Contributor III

Problem:

The pie chart display in the pop up, when the value is  100%,  show as 1/2.

example:

project size = 2,572.03 sq mi

completed size = 257.03 sq mi

 in this expression below the answer comes up correction - 100% 

Round((($feature.CompletedAmt/$feature.ProjectSize)*100),2)+"%"

100%

Using this expression, to create a pie chart in the pop up was straightforward and seems to work well.

However, anytime there is a 100% values, the pie displays as 50% / 1:1, like this: 

100% pie chart errors out and shows a 1:1 / 50%

Can anyone with more java/arcade experience explain to me what is going on here?

#arcgis‌ configure pop ups# arcade expressions‌ #arcade pop-ups

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

What you would need is a field indicating the size the still needs to be completed along with the completed size. The sum of both should be the project size. Don't use the project size in the pie chart.

View solution in original post

2 Replies
XanderBakker
Esri Esteemed Contributor

What you would need is a field indicating the size the still needs to be completed along with the completed size. The sum of both should be the project size. Don't use the project size in the pie chart.

by Anonymous User
Not applicable

Looks like two fields with the same values were selected in the pop up configuration. If you want to pot your pop-up configuration we can look further into it. 

Additionally, based on the numbers provided that expression should produce 9.99 not 100.